I have got this group of checkboxes that behave like radio buttons.
I need some help in letting the user allow to uncheck a checkbox too, so there can be no selection within the group.
<label><input type="checkbox" name="cb1" class="chb" /> CheckBox1</label>
<label><input type="checkbox" name="cb2" class="chb" /> CheckBox2</label>
<label><input type="checkbox" name="cb3" class="chb" /> CheckBox3</label>
<label><input type="checkbox" name="cb4" class="chb" /> CheckBox4</label>
$(".chb").each(function()
{
$(this).change(function()
{
$(".chb").attr('checked',false);
$(this).attr('checked',true);
});
});