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!

Enabling/disabling radio buttons

Status
Not open for further replies.

lmark

Programmer
Nov 27, 2000
5
GB
Is it possible to enable/disable a group of radio buttons dynamically, ie to gray them out dependent on whether a text box on the form has data entered?
Preferably so it works in IE and Netscape.

TIA.....
 
NN4 does not accept disabled for form elements, but IE does
So based on some condition - just loop thru the radio button group setting the disabled attribute to true, based on some codition, like the text box has data entered.

You could cheat by saying
if(document.formname.text.value != void){
//continue with radio setting
}


b[sup]2[/sup] - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top