Click to See Complete Forum and Search --> : row Collection


lakshman
05-06-2003, 07:35 PM
Hi all,

The following is from MSDN.

If you insert a row in a tFoot, tBody, or tHead, you also need to add the row to the rows collection for the table. If you insert a row in the table, you also need to add the row to the rows collection for the tBody


My code

var oTBody = document.getElementById("tbl_body");
var oTR = oTBody.insertRow();

Now, what do I need to do to add the above row to the table.

Thanks

lakshman
05-06-2003, 09:51 PM
Hi anyone please help me...!!

What do I need to include to "add the row to the rows collection "

Thanks

Lakshman

lakshman
05-06-2003, 10:05 PM
Hi

Dont't worry I have found the answer.
At the top of insertRow Method there is a line
"Creates a new row (tr) in the table, and adds the row to the rows collection. "

All is well.


Thanks