Hi,
I have 3 radio buttons which are in the radio button group. On tab change it has to focus on next radio button. I have written a function to do that, but Its going from first to second radio button, after that again its coming back to first radio button and repeating the same.
Any one of you please help me in findingout on which radio button the focus is on presently...
Here is the function, conversion is radio button
function onTab(event) {
var str=document.getElementById("conver").value;
if(event.keyCode == 9 )
{
for(i =0;i<document.form1.conversion.length;i++){
if(str==i){
i=i+1;
document.form1.conversion.focus();
}
}
}
}
<c:forEach items="${QantasClubRenewViewBean.membershipQuoteList}" var="membershipQuote" varStatus="status">
<html-el:hidden property="hIndex" value="$(status.index)"/>
<html-el:radio property="renewPaymentSelected" onKeyUp="onTab(event)"/>
Thanks inadvance....