Changing table content with IE
document.getElementById('table').innerHTML = '<tr><td>new text</td></tr> ';
I think IE has a problem with getting the table, it says "Object not found".
Any suggestions on making this work or any other way to change the table content.
Thanks in advance for any help.
Do you have more than one id="table" in your HTML document? Do you have a different tag with name="table" in the HTML document? If you answered yes to any of these questions, make sure you have only one id="table" and that no two tags have the same Id or name.
I have only one element with id="table".
Originally Posted by toicontien
Internet Explorer doesn't allow you to use innerHTML with parts of tables. If you want to access something that involves any parts of a table with innerHTML in IE you have to access the entire table including the table tag.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)