I have group checkboxes and I like if this group have behaviour like radiobuttons with same name atribute.
Each checkbox has different name.
Only one can be
var $unique = $('input.unique'); $unique.click(function() { $checked = $(this).is(':checked') ; // check if that was clicked. $unique.removeAttr('checked'); //clear all checkboxes $(this).attr('checked', $checked); // update that was clicked. });