faqts : Computers : Programming : Languages : JavaScript : Forms : Radio buttons

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

29 of 49 people (59%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

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

Feb 19th, 2002 02:59
sowel Mahmood, Arsen Yeremin, Chris Pielak, Joe Akers,


<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].checked=true"> 
	<option value="0">0</option>
	<option value="1">1</option>
	<option value="2">2</option>
	<option value="3">3</option>			
</select>
</form>
</body>
</html>