wood burning stoves 2.0*
The moose likes Java in General and the fly likes Is it possible to set empty value for Radio Button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Is it possible to set empty value for Radio Button" Watch "Is it possible to set empty value for Radio Button" New topic
Author

Is it possible to set empty value for Radio Button

Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
Hi All,
I have a primary question QA and Secondary question QB.

If user chose Yes for QA, the i will show the secondary question QB.

But if user chose QA, i will not show the QB.

Consider the below steps of execution

Step 1) Chose Yes for QA.
Step 2) Chose Yes for QB.
Step 3) Then user chooses No for QA. So i will hide the QB.

But at the end of step 3 still the form has the value for QB. SO i want to know is it possible to set the empty value for QB. Basically when user chooses QA the QB should be empty value. Is it possible to acheive the above requirement.

Any help would be appreciated.

Thanks
Param
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60749
    
  65

Swing? HTML? Other?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
Its simple HTML. I need to do it through JavaScript.

Thanks
Param
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is it possible to set empty value for Radio Button
 
Similar Threads
Getting a RadioButton input
security
[ICEfaces] Clearing one inputText form when changing radio button selected
Sorting vectors... a nightmare?
how to compare elements of List