Click to See Complete Forum and Search --> : Create new table cell


lakshman
05-06-2003, 01:29 AM
Hi all

How do I create a new table cell in JS
For Eg.

var el = document.getElementById("tblSrchResutl");
.....
....

frm.appendChild(?????);




Where can I go to find all the methods and attribute for doing the above.



Thanks

Lakshman

lakshman
05-06-2003, 01:52 AM
I have solved this problem. thanks to dave clarks reference to http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/deletecell.asp



One Quick question

<tr>
<td>
Lakshman
</td>
</tr>

What kind of an element is "Lakshman" in the above example.

lakshman
05-06-2003, 02:30 AM
Don't worry I have solved it.

khalidali63
05-06-2003, 06:40 AM
:D
For anybody else out there who might beinterestedinfinding this out..

its a text node that is value of an element is always a text node