First, I have a set of checkbox elements, i want that every time i click on it there's a way to count how many checkboxes where active inside the form. Next, place a limit on how many checkboxes I want to check, if it reaches the limit then I want the remaining checkboxes disabled. Currently, jquery .length returns the total number of checkboxes.
btw, i'm using a custom javascript/css checkbox, but i think the idea is the same