Checkbox cancelation: If one checked gray others; visa versa.
See code below:
If "None" is selected, I need all the other check boxes grayed out.
If any one (or several/all) of the other check boxes is checked, then "None" grays out. How can I make this work? Using DOM?
Thanks in advance:
You would use JavaScript. Have you tried anything yet? It is good that each input has an id attribute. You can use this to help you tie up your JavaScript.
If he wants to be able to select multiple options, though then checkboxes are the correct choice. Having them all the same name will return all selected values in a single name too.
Yes, nathandelane is correct. I need check boxes.
Also, nathandelane, this is a great start.
I also need this second part:
If any one (or several/all) of the other check boxes is checked, then "None" grays out. Without making this too complicated, is this doable??
Bookmarks