hi,
I have a problem…is it possible for show/hide (Toggling) using only one radio button.?
When it is checked .we need to show the div..when it is not checked we need to hide the div?
is it possible?
<html>
<title>Test</title>
<head>
<script type=”text/javascript”>
function toggle(divToShow) {
if (document.getElementById) {
if (divToShow == “with”) {
document.getElementById(‘withdiv’).style.display = “inline”;
} else {
document.getElementById(‘withdiv’).style.display = “none”;
}
}
}
</script>
</head>
<body >
<input type=”radio” name=”sam” value=”1″ id=”with”
onclick=”toggle(‘with’)” /> With
<div id=”withdiv” style=”display:none;”>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td width=”20%”><select name=””>
<option>– Select –</option>
</select>
</tr>
<tr>
</td>
<td><textarea name=”” cols=”” rows=””></textarea>
</td>
</tr>
</table>
</div>
</body>
</html>