/    Sign up×
Community /Pin to ProfileBookmark

Create new table cell

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

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@lakshmanauthorMay 06.2003 — 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.
Copy linkTweet thisAlerts:
@lakshmanauthorMay 06.2003 — Don't worry I have solved it.
Copy linkTweet thisAlerts:
@khalidali63May 06.2003 — ?

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
×

Success!

Help @lakshman spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...