I have html items, 4 example:
Checkbox
-
Maybe this will help you:
.siblings("input[type='checkbox']").attr("checked", true);
will select all the checkboxes except for the one that was clicked.
$("input[type=checkbox]").on("click", function() {
if ($(this).val() == "none") {
$(this).siblings("input[type=checkbox]").attr('checked', false);
} else {
$(this).siblings("input[value=none]").attr('checked', false);
}
});