faqts : Computers : Programming : Languages : JavaScript : Forms : SELECT

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 22 people (36%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How do I update radio buttons based on a selection from a pull down menu?

Dec 20th, 2001 09:47
Arsen Yeremin, Chris Pielak,


<html>
<head>
	<title>Select Radio</title>
</head>
<body>
<form name="my_form">
<input type="radio" name="r" checked>
<input type="radio" name="r">
<input type="radio" name="r">
<input type="radio" name="r">
<br>
<select onchange=this.form.r[this.options
[this.selectedIndex].value].click()> 
	<option value="0">0</option>
	<option value="1">1</option>
	<option value="2">2</option>
	<option value="3">3</option>			
</select>
</form>
</body>
</html>