This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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: 9520
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic