aspose file tools
The moose likes Struts and the fly likes how to display a textbox when a radio button is selected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to display a textbox when a radio button is selected" Watch "how to display a textbox when a radio button is selected" New topic
Author

how to display a textbox when a radio button is selected

shyama sai
Greenhorn

Joined: Dec 29, 2009
Posts: 1
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

Joined: Aug 03, 2008
Posts: 9327
    
  19

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...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: how to display a textbox when a radio button is selected