hi all
see this code i want to convert the radio button to a dropdown list
[CODE]
<html >
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<title>Check this box for TEXT INPUT</title>
<script language=”javascript”>
function showtext(){
document.getElementById(‘text’).style.display=’inline’;
document.getElementById(‘menu’).style.display=’none’;
}
function showmenu(){
document.getElementById(‘menu’).style.display=’inline’;
document.getElementById(‘text’).style.display=’none’;
}
</script>
</head>
<body>
<table>
<tr>
<td>Male</td>
<td><input type=”radio” onclick=”showtext()”></td>
<td rowspan=”2″>
<div id=”text” style=”display: inline”>
<select name=”dropdown” style=”font-size:10px;” size=”1″>
<option>John</option>
<option>David</option>
<option>Mike</option>
</select>
</div>
<div id=”menu” style=”display: none”>
<select name=”dropdown” style=”font-size:10px;” size=”1″>
<option>Roza</option>
<option>Jane</option>
<option>Christina</option>
</select>
</div>
</td>
</tr>
<td>Female</td>
<td><input type=”radio” onclick=”showmenu()”></td>
</tr>
</table>
</body>
</html>