Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to display a textbox when a radio button is selected

 
shyama sai
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i'm new to struts....i have two radio buttons one named A and other named B. I want to display a textbox when radio button A is selected. Please help me how to do it!!!
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shyama welcome to javaranch.

This is not hard to achieve if you know basic javascript and Document Object Model. You just need to handle the onclick event of the radio button...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic