Meaningless Drivel is fun!
The moose likes HTML, CSS and JavaScript and the fly likes how to enable radio button 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 "how to enable radio button " Watch "how to enable radio button " New topic

how to enable radio button

goonn kantha

Joined: Oct 24, 2005
Posts: 2

I have two radio buttons,say A and B. Under B, I have many checkboxes.

If the user selects the checkboxes of B, without selecting radiobutton B,

how to automatically enable in backend.

plz suggest some solution

Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
You would definitely get a much better answer in HTML/Javascript Forum.

A Babu
Ranch Hand

Joined: Nov 28, 2005
Posts: 114
while writing the tag for radio button you mention "checked" beside the name of the radio button.then it will automatically activated
and more thing is no two radio buttons have be the checked position at same time.

for example,in form YES and NO two radio button s are there .let us assume.
so if you write both buttons have checked at that time only one buton is in checked position and other one is in unchecked position even you mentioned both are checked.

see sample codes for this in google.


Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63837

Moved to HTML.

[Asking smart questions] [About Bear] [Books by Bear]
Niki Nono
Ranch Hand

Joined: Mar 20, 2005
Posts: 256
i think probably it should be the other way round.
If he selects radio button B then all checkboxes of B should be enabled.

Whats the point of the radio button if all the checkboxes are enabled in the first go.

Life called,so here I am.<br />Cheers<br />Niki.:-)
I agree. Here's the link:
subject: how to enable radio button
It's not a secret anymore!