File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Radio button group disable and enable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Radio button group disable and enable" Watch "Radio button group disable and enable" New topic
Author

Radio button group disable and enable

Radhika Srinivasan
Ranch Hand

Joined: Jul 28, 2009
Posts: 32
I have two radio groups. Say one for food option and the other one for toppings.
I want to enable toppings radio group to appear only after food option is selected.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10375
    
    8

In future, while posting code, please UseCodeTags. I have added them this time for you. As you can see, the tags make the code much more easier to read and understand.
Also, you have posted in the IDE forums. Please do take out time in future to CarefullyChooseOneForum.
Moving this to the correct forum...

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Radhika Srinivasan
Ranch Hand

Joined: Jul 28, 2009
Posts: 32
Thank you Maneesh
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61217
    
  66

Put the toppings in a container than can be hidden with CSS. On the change event of a pizza choice, show the container when a choice has been made.

And speaking of choices, choose better names. name="pizza" is better than name="pi" and name="topping" is better than name="top". I can never understand this urge to mangle perfectly good words with meaningless abbreviations.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Radhika Srinivasan
Ranch Hand

Joined: Jul 28, 2009
Posts: 32
Thank you Bear for the advice. I shall change the name. I haven't put up the actual code I am working on since it is for a project. I have given proper naming there. I just wanted to get the logic to get this working. Thank you once again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Radio button group disable and enable