Forum Moderators: not2easy

Message Too Old, No Replies

changing css class when field is enabled

         

librarc

12:27 pm on May 22, 2007 (gmt 0)

10+ Year Member



I currently have a list box that when disbaled, has a class='a'from my css. The box is enabled when an item is chosen from a dropdown box within the same form. I would like to change the class of the box (class='b') when it is enabled, and back to class='a' when disabled. Can someone please advise?

dukelips

3:16 pm on May 22, 2007 (gmt 0)

10+ Year Member



javascript

librarc

5:53 pm on May 22, 2007 (gmt 0)

10+ Year Member



that I knew... what I would like to know is any insight on the actual javascript coding used to facilitate the change. Thanks

Fotiman

6:07 pm on May 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



dukelips might have been suggesting that you might get better results posting in the JavaScript forum, since this is a JavaScript question and not a CSS question.

librarc

1:49 am on May 23, 2007 (gmt 0)

10+ Year Member



Oh ok, thanks... sorry for the mistake