Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing color of radio button labels

Status
Not open for further replies.

DKL01

Programmer
Sep 14, 2000
233
US
Hi,

I have one drop-down box and 3 radio buttons in my html page. Based of the value selected in drop-down box some of the radio buttons enable/disable. I can disable the radio buttons using javascript

document.frm1.group(0).disabled = true;

Is there any technique by which I can gray out the labels associated with radio buttons when we disable radio buttons ?

Thanks
 
You should be able to use dynamic html and javascript to change the text color of the labels. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
try implementing CSS with the Javascript code you use... I have not failed; I merely found 100,000 different ways of not succeding...
 
Don't forget that you need to set the ID property of your elements to change their properties using CSS/JS. Also, you can't really change them easily using an array like you did with the form elements. Harold Blackorby
hblackorby@scoreinteractive.com
St. Louis, MO
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top