Hi group,
This seems basic to me, but I can't find the solution.
I have a table that grows tr's and td's.
At one point I have something like this:
var new_tr = tableRef.insertRow(newRowNum);
How can I give this new tr (new_tr) an ID that can be referenced by means of
getElementById() ??
I hoped for something like:
new_tr.setID("row20");
but that doesn't fly. :-/
Thanks for your time.
Regards,
Erwin Moller
Ian Collins - 30 Jun 2006 11:47 GMT
> Hi group,
>
[quoted text clipped - 9 lines]
> I hoped for something like:
> new_tr.setID("row20");
new_tr.id = "row20";

Signature
Ian Collins.
Erwin Moller - 30 Jun 2006 11:51 GMT
>> Hi group,
>>
[quoted text clipped - 11 lines]
>
> new_tr.id = "row20";
Wow, I knew it had to be simple. :-)
Thanks for your quick response!
Regards,
Erwin Moller