Created
February 3, 2015 15:14
-
-
Save dacur/226edd055e37cb7c6c0e to your computer and use it in GitHub Desktop.
Loop through a set of checkboxes. If checked, push into an array.
This file contains hidden or 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
| var inputID = ""; | |
| $('#howDidIFeelCheckboxes').find('input').each(function(){ | |
| if($(this).is(':checked')){ | |
| inputID = $(this).attr('id'); | |
| // alert(id); | |
| _howDidIFeelPopup.push(inputID); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment