Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Limit number of selected chekboxes

var limit = 3;
$('input.single-checkbox').on('change', function(evt) {
   if($(this).siblings(':checked').length >= limit) {
       this.checked = false;
   }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Limit #number #selected #chekboxes
ADD COMMENT
Topic
Name
8+9 =