Jump to content
Sign in to follow this  
KGH

setting table value thru script

Recommended Posts

I have a table which has only one row.I have a script which sets the table value with some data.It is not working.

document.dat.rows[0].cells[0] = theevent;

where data is id of table.

How to do it?

Thanks in advance.

Share this post


Link to post
Share on other sites

Well, first check that theevent has a value.

 

The second problem is that document.data is not a proper syntax to get elements by their ID. Use document.getElementById("data").

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...