Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Table Cells' Attributes: colspan and class


  • From: javascript@xxxxxxxxxx (javascript@xxxxxxxxxx)
  • Subject: [Javascript] Table Cells' Attributes: colspan and class
  • Date: Mon, 27 May 2002 18:50:54 EDT

--part1_d6.171a0e95.2a24124e_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Using JScript (this if for I.E. only) I would like to:

1. Change a table cell's 'colspan=' attribute
2. Change a table cell's 'class=' attribute

Each cell has its own id, so I tried document.getElementById(cellID).colspan=
and
document.getElementById(cellID).class=

Neither worked, I think class is a reserved word in JScript though, but I'm 
not sure.  Maybe I can use document.getElementById(cellID).style._? ? ?_.  
Any ideas?

-Scott

--part1_d6.171a0e95.2a24124e_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

<HTML><FONT FACE=arial,helvetica><FONT  SIZE=2 FAMILY="FIXED" FACE="Courier New" LANG="0">Using JScript (this if for I.E. only) I would like to:<BR>
<BR>
1. Change a table cell's 'colspan=' attribute<BR>
2. Change a table cell's 'class=' attribute<BR>
<BR>
Each cell has its own id, so I tried document.getElementById(cellID).colspan=<BR>
and<BR>
document.getElementById(cellID).class=<BR>
<BR>
Neither worked, I think class is a reserved word in JScript though, but I'm not sure.&nbsp; Maybe I can use document.getElementById(cellID).style._<U>? ? ?</U>_.&nbsp; Any ideas?<BR>
<BR>
-Scott</FONT></HTML>

--part1_d6.171a0e95.2a24124e_boundary--