H
Holden Caulfield
Hi there,
for IE 5+ I need to be able to change certain TD tags´ background
colors, and can´t figure out how to do it...
For instance, in a table with 25 cells, somewhere between 5 or 10 will
need the bgcolor to change at the same time when a user clicks a
button. Right now only one changes when I use something like this...
document.getElementById(´cellchange´).style.backgroundColor = "FFFFFF"
** (Note, this is not the EXACT code, I am typing from memory... but
it is SOMEthing like thw above...)
where a few td cells have an "id=cellchange" in there tag. I need ALL
of the ones with that ID to change!
Is there a getElementByClass, for multiple similar elements?
Thanks!
Holden
PS: The cells to change are set through ASP and are different for
every user.
PPS: It is an intranet app and ONLY HAS TO WORK WITH IE 5 and later!!
for IE 5+ I need to be able to change certain TD tags´ background
colors, and can´t figure out how to do it...
For instance, in a table with 25 cells, somewhere between 5 or 10 will
need the bgcolor to change at the same time when a user clicks a
button. Right now only one changes when I use something like this...
document.getElementById(´cellchange´).style.backgroundColor = "FFFFFF"
** (Note, this is not the EXACT code, I am typing from memory... but
it is SOMEthing like thw above...)
where a few td cells have an "id=cellchange" in there tag. I need ALL
of the ones with that ID to change!
Is there a getElementByClass, for multiple similar elements?
Thanks!
Holden
PS: The cells to change are set through ASP and are different for
every user.
PPS: It is an intranet app and ONLY HAS TO WORK WITH IE 5 and later!!