File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Head First Android this week in the Android 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: 63042
    
  69

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Is it possible to set empty value for Radio Button
 
jQuery in Action, 3rd edition