Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var checkbox_validate = function() {
- var count = 0;
- var $checkbox = $('.checkbox');
- var i;
- for(i = 0; i < $checkbox.length; ++i) {
- if($checkbox[i].checked) ++count;
- }
- $('#send').prop('disabled', 7 <== count);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement