• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting the focus on an image on selecting a radio button

 
Apurba Chakraborty
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi fellow Ranchers,

In my application, I have the requirement that I need to set the focus on the 'Submit' button, which is actually an image, on selecting a radio button....It looks simple but I could do it if it had been a button, textbox, textarea, frame and window but this image thing is giving me some discomfort for quite some time....Please help me out............

Thank You in advance,
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
images are not focusable elements. In order for your image button to obtain focus you will need to implement it as an input element of type image, or as a button element wrapping an image.
 
Apurba Chakraborty
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear,

Thanks a lot for your suggestion..I'll surely try that out and let you know if it worked..And also thank you for the whole lot of information you have provided in those links, it's really helpful....

Thanks and Regards,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic