[thelist] JavaScript: Change Class

Anthony Baratta Anthony at Baratta.com
Fri Jul 11 17:35:12 CDT 2003


At 02:41 PM 7/11/2003, Casey Crookston wrote:
>JavaScript question for the list:
>
>I have a form with a simple little javascript toggle to make a selection
>unavailable depeneding on the selection.  What I'd like to do is also switch
>the class in the last td from BLACK to GREY. (see code below)

Give the TD tag an ID. use the getElementById function and change the class.

---
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."



More information about the thelist mailing list