<html>
<head>
<script>
function goSubmit()
{
document.frm.submit();
}
</script>
</head>
<body>
<form action ="view1.jsp" method="post" name="frm">
<table>
<tr>
<td>
<input type="radio" name="rg" value="faculty" onClick="goSubmit()"/>
</td>
<td>
<input type="radio" name="rg" value="date" onClick="goSubmit()"/>
</td>
<td>
<input type="radio" name="rg" value="content" onClick="goSubmit()">
</td>
</tr>
</table>
</form>
</body>
</html>
<html>
<head>
<script>
function goSubmit()
{
document.frm.submit();
}
</script>
</head>
<body>
<form action ="view1.jsp" method="post" name="frm">
<table>
<tr>
<td>
<input type="radio" name="rg" value="faculty" onClick="goSubmit()"/>
</td>
<td>
<input type="radio" name="rg" value="date" onClick="goSubmit()"/>
</td>
<td>
<input type="radio" name="rg" value="content" onClick="goSubmit()">
</td>
</tr>
</table>
</form>
</body>
</html>
this is my code i lost the focus on which radio button is selected after submiting the form