HighDots Forums  

Re: text in a table cell

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss Re: text in a table cell in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andre Herbst
 
Posts: n/a

Default Re: text in a table cell - 08-07-2004 , 02:38 PM






Valentinus Schreurs wrote:
Quote:
is it possible change the text in a table cell with Java script,if so
who can provide me a script
var i,j

i=0
j=3

document.all.mytable.rows(i).cells(j).innerHTML = "content" // changes
the field in line 0 at col 3




Reply With Quote
  #2  
Old   
Andre Herbst
 
Posts: n/a

Default Re: text in a table cell - 08-09-2004 , 04:36 AM






Andre Herbst wrote:
Quote:
Valentinus Schreurs wrote:
is it possible change the text in a table cell with Java script,if so
who can provide me a script

var i,j

i=0
j=3

document.all.mytable.rows(i).cells(j).innerHTML = "content" //
changes the field in line 0 at col 3
i have to correct myself again:

this line

document.all.mytable.rows(i).cells(j).innerHTML = "content"

is only supported in IE.

Use instead:

document.all.mytable.rows[i].cells[j].innerHTML = "content"






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.