• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

focusing on radio button

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, can anyone pls help me figure out how to set focus on a radio button.
I have my body tag defined generically in my tiles layout, and I call mySetFocus() in the onload event.
mySetFocus
{
if(document.forms[0] != null) document.forms[0].elements[0].focus();
}
But this seems to have no effect on radio buttons, although it works for text fields.
Trying to set the focus on every individual page, like
html:form action="/SubmitPage" focus="RadioBtn[0]" causes an error.
Does anyone have any idea what is to be done... Thx.
[ March 01, 2004: Message edited by: Michelle Cox ]
 
Michelle Cox
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are my questions too stupid or somethin'.. Why isn't anybody asnwering them???
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi beleive u got the answer for ur question
but in addition to the same in focus u put the property name of radiobutton which u have reflected in bean form class
i beleive this will help u,
lee
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic