[Javascript] Table Cells' Attributes: colspan and class

SnarfLT at aol.com SnarfLT at aol.com
Mon May 27 17:50:54 CDT 2002


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20020527/639dcbcc/attachment.htm>


More information about the Javascript mailing list