Created
December 27, 2016 21:06
-
-
Save victorono/2cd905482123b6824ccc2b8ecb41b326 to your computer and use it in GitHub Desktop.
jQuery mark all input checkbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('input[type=checkbox]').map(function(){ | |
return $(this).val(); | |
}); | |
$('input[type=checkbox]:checked').map(function(){ | |
return $(this).val(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment