Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying table rows in IE 6 1

Status
Not open for further replies.

philote

MIS
Oct 2, 2003
861
US
This works in Mozilla/Firebird but not IE 6... I suspect the problem is with appendChild.
Code:
var tbody = document.getElementById('sometable');
var tRows = tbody.rows;
var newRow = tRows[0].cloneNode(true);
tbody.appendChild(newRow);
Any idea how to get it working in IE 6?

 
Append row to TBODY - this should work in moz and IE6:
Code:
tbody.tBodies[0].appendChild(newRow);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top