Advertisement
yumetodo

for_takeokunn_1

Mar 22nd, 2016
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var checkbox_validate = function() {
  2.     var count = 0;
  3.     var $checkbox = $('.checkbox');
  4.     var i;
  5.     for(i = 0; i < $checkbox.length; ++i) {
  6.         if($checkbox[i].checked) ++count;
  7.     }
  8.     $('#send').prop('disabled', 7 <== count);
  9. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement