$("input[type=checkbox][name=cate]").click(function() {
var bol = $("input[type=checkbox][name=cate]:checked").length >= 4;
$("input[type=checkbox][name=cate]").not(":checked").attr("disabled",bol);
});
More Related Contents:
- How to retrieve checkboxes values in jQuery
- Get checkbox value in jQuery
- How to limit the number of selected checkboxes?
- jQuery if checkbox is checked
- Toggle Checkboxes on/off
- Get a list of checked checkboxes in a div using jQuery
- How do I check/uncheck all checkboxes with a button using jQuery?
- Using jquery to get all checked checkboxes with a certain class name
- calculate the number of html checkbox checked using jquery
- jQuery selector for the label of a checkbox
- jQuery, checkboxes and .is(“:checked”)
- How to handle change of checkbox using jQuery?
- jQuery set checkbox checked
- jQuery checkbox event handling
- jQuery: make checkboxes act like radio buttons?
- Find all unchecked checkboxes in jQuery
- if checkbox checked add class to parent element
- check uncheck All checkboxes with another single checkbox use jquery
- jQuery UI: Datepicker set year range dropdown to 100 years
- How to remove css property in jQuery
- How to listen to when a checkbox is checked in Jquery
- Difference between find and filter
- Select2: How to prevent tags sorting
- How to send data in jquery.post to mvc controller which use ViewModel as parameter?
- Why isn’t my checkbox change event triggered?
- Detecting IE using jQuery
- change img src on click
- jQuery: detecting reaching bottom of scroll doesn’t work, only detects the top
- jQuery disable button (NOT Submit) until field validates + Validation Plugin
- Click the poster image the HTML5 video plays?