Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Re: document object, compatibility[IE,NN],radio button grp


Message #1 by "TurnenT" <turnent@h...> on Fri, 11 Jan 2002 04:05:22
I would probably do:
document.(FORM_NAME).(ELEMENT_NAME).focus();
document.(FORM_NAME).(ELEMENT_NAME)[(ELEMENT_INDEX)].select();
 If that doesnt work, then I don't know what to do :-)

TurnenT

======================================================
> what is the best way to set focus and select a radio button from groups 
of 
> radio buttons on a form, that both netscape and IE will recognize,
> The following works in Netscape but not Explorer,
> 
> document.forms[1].elements[rbname][rbindex].focus();
> document.forms[1].elements[rbname][rbindex].select();
> rbname is the name of the radio button group
> rbindex is the index number i want to select of the group
> 
> any suggestions would be appreciated
> 
> Thank you

  Return to Index