solidfilter
07-15-2006, 09:11 PM
I'm trying to achieve an effect with JavaScript that goes like this:
The user has a few radio buttons to choose from on a form. Each radio button has it's own label. The default text style for the label is say black and not bold. When the user clicks on one of the radio buttons I want the corresponding label to the radio button to become bold and change to a different color.
Basically I want this so the users can easily find out what selection they had made without guessing. I've tried several things but I just can't seem to figure it out. Any help would be great, thanks!
(I'm not good with JavaScript, I spend all my time with xhtml, css, php, and mysql so I haven't found time to learn the language)
The user has a few radio buttons to choose from on a form. Each radio button has it's own label. The default text style for the label is say black and not bold. When the user clicks on one of the radio buttons I want the corresponding label to the radio button to become bold and change to a different color.
Basically I want this so the users can easily find out what selection they had made without guessing. I've tried several things but I just can't seem to figure it out. Any help would be great, thanks!
(I'm not good with JavaScript, I spend all my time with xhtml, css, php, and mysql so I haven't found time to learn the language)