For example
Code:
<script type="text/javascript">
var _ = function (el) {
return document.getElementById(el);
}
var check = function () {
if (_('a').checked) {
_('sel_a').style.display = "block";
_('sel_z').style.display = "none";
} else if (_('z').checked) {
_('sel_z').style.display = "block";
_('sel_a').style.display = "none";
}
}
</script>
A<input type="radio" name="letters" value="A" id="a" onclick="check()" checked /> or Z <input type="radio" name="letters" value="Z" id="z" onclick="check()"/><br />
<select id="sel_a">
<option>A</option>
<option>B</option>
<option>C</option>
</select>
<select id="sel_z" style="display: none">
<option>Z</option>
<option>Y</option>
<option>X</option>
</select>
Bookmarks