I have to create some groups for checkboxes. Like when I have 3 checkboxes with 'value="group1"', it only allows me to select one of the checkboxes, every other checkbox under that group gets deselected. I got halfway there, so that I can filter checkboxes based on their groups, and I can set them to false. Problem is with setting the checkbox value for the right checkbox back to "checked". I think I might be using wrong method for this, because it seems that I prevent them from being selected all the time... So maybe there is another way to solve this?
You can see my current JS fiddle here: http://www.jsfiddle.net/Rph8z/
nonevalue and a solution that basically tries to replicate some already existing behaviour involving JavaScript and won't work if JS is disabled, I would clearly choosenone. Besides that, it might be easier to understand for the user if there is (preselected)noneoption, but that depends on the context.