Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form.focus(???)

Status
Not open for further replies.

moogwai

Programmer
Mar 6, 2002
11
US
greetings, thanks for reading. I am in a pickle of a dilly here. Javascript form validation. Long application, some text fields some radio buttons. if the radios arent checked I have the alert popup just fine. I can not, for the life of me, figure out how to focus the field after the radio button not checked alert. I've tried to focus on hidden inputs which dont seem to accept the focus fuction and have tried anchor tags.
Is there a solution to my problem? I appreciate any help you have to offer.
Thanks for the time,
Moogwai
 
if you want the focus to go to the radio buttons you could use document.formname.radiobuttonname[0].focus() and it would set the focus to the first radio button of the set
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top