Hi all,
I am facing problem while using focus function. I have a table with around 100 rows with radio button for each record. The selection of the radio button is based on some calculation and so any of the row will be selected depending the response from servlet. I want to scroll the scroll bar automatically to the selected row.
I have used the following code but it is not working.
<script type=”text/JavaScript”>
function doFocus(){
document.getElementById(‘RadioSelected’).focus();
}
</script>
<body bgcolor=”#D9E1DD” onload=”doFocus();”>
……
……
<%if(AcTpRowBean[i].getChecked().equals(“checked”)){ %>
<input id=”RadioSelected” name=”RadioSelected” checked=”checked” value=”01″ type=”radio” onBlur=”doCheck(this);”>
……..
…….
</body>
can anybody help me to sort it out.
thanks in advance
ananda