tsmithinnc
asked on
Javascript onselect from drop down box
I have a drop down box ...
When the enduser selects something from this box, I need the focus to go to two radio buttons and require them to choose one of them...
and I need the radio buttons inactive UNTIL someone is selected from drop down...
Possible?
When the enduser selects something from this box, I need the focus to go to two radio buttons and require them to choose one of them...
and I need the radio buttons inactive UNTIL someone is selected from drop down...
Possible?
Show your html that you have so far.
something like this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<select name="mySelect" id="mySelect" onChange="if(this.options[ this.selec tedIndex]. value=='sh ow'){docum ent.getEle mentById(' myFieldSet ').style.v isibility= 'visible'} else{docum ent.getEle mentById(' myFieldSet ').style.v isibility= 'hidden'}" >
<option value="">Select</option>
<option value="show">Show</option>
<option value="hide">Hide</option>
</select><br>
<fieldset id="myFieldSet" style="border:1px solid grey; width:50%; visibility:hidden">
<legend>Select Option</legend>
<input type="radio" name="myRadio" value="0">Option 1<br>
<input type="radio" name="myRadio" value="1">Option 2<br>
<input type="radio" name="myRadio" value="2">Option 3<br>
<input type="radio" name="myRadio" value="3">Option 4<br>
</fieldset>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<select name="mySelect" id="mySelect" onChange="if(this.options[
<option value="">Select</option>
<option value="show">Show</option>
<option value="hide">Hide</option>
</select><br>
<fieldset id="myFieldSet" style="border:1px solid grey; width:50%; visibility:hidden">
<legend>Select Option</legend>
<input type="radio" name="myRadio" value="0">Option 1<br>
<input type="radio" name="myRadio" value="1">Option 2<br>
<input type="radio" name="myRadio" value="2">Option 3<br>
<input type="radio" name="myRadio" value="3">Option 4<br>
</fieldset>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.