how to change id of table cell using javascript

Posted by Muhammad Akhtar on Stack Overflow See other posts from Stack Overflow or by Muhammad Akhtar
Published on 2010-04-29T07:05:03Z Indexed on 2010/04/29 7:07 UTC
Read the original article Hit count: 471

Filed under:
|
|

I have tried this, but not working.

tbl1.rows[0].cells[0].id ='myId';

and this is also not working

tbl1.rows[0].cells[0].setAttribute("id","newid");

how can I do this?

Thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html