RsD0p9BK
5/22/2015 - 1:24 PM

form__checboxes_limit.js

// limit the number of selected checkboxes

$("input:checkbox").click(function(){
    if ($("input:checkbox:checked").length > 3){
      return false;
   }
});

// http://stackoverflow.com/questions/19001844/how-to-limit-the-number-of-selected-checkboxes