I am doing maintenance to old native javascript codings. Scenario: I do a AJAX call, returning something like this: <div id="new_el">This is new content</div> I bind this returned content back to the main content by simply doing this: document.getElementById('target').innerHTML = returnedString; Problem: document.getElementById('new_el') does not return me anything. I have done both exeScript() and eval() to try binding the id into main content but no help. Now I need your help. Thanks. |