Make a group of checkboxes behave like radiobuttons.
Source code viewer
// Also able do deselect all: var $unique = $(selector); // change the selector $unique.click(function() { $unique.filter(':checked').not(this).removeAttr('checked'); }); // You are not able to deselect all, exactly like radio buttons: var $unique = $(selector); // change the selector $unique.click(function() { $unique.removeAttr('checked'); $(this).attr('checked', true); });Programming Language: Javascript