Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

focusing on radio button

 
Michelle Cox
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Are my questions too stupid or somethin'.. Why isn't anybody asnwering them???
 
lee anthony
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic