It's not a secret anymore!
The moose likes HTML, CSS and JavaScript and the fly likes checkbox must always be checkd 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 "checkbox must always be checkd" Watch "checkbox must always be checkd" New topic

checkbox must always be checkd

Sid varma
Ranch Hand

Joined: Apr 06, 2009
Posts: 37
hello guys,

i am trying to create a page with two radiobutton and two checkboxes. the functionality is, the checkbox must automatically be checked if the corresposding radiobutton is clicked. also while the radiobutton is checked, one must NOT be able to uncheck the checkbox. finally, when a different radiobutton is clicked, then the previously clicked checkbok must be released ( unchecked). i am not able to get the final functionality

help is greatly appreciated


where $ is nothing but Document.getElementByID()
aand the colort.getDisplay whatever is nothing but the database name of the checkbox

Siddhartha Varma
SCJP 1.6 - 93 %, SCWCD - 85%
Kartik Talasu
Ranch Hand

Joined: Aug 21, 2009
Posts: 99
Here is the code......

I agree. Here's the link:
subject: checkbox must always be checkd
It's not a secret anymore!