Last active
January 2, 2016 11:09
-
-
Save dev0x10/8294490 to your computer and use it in GitHub Desktop.
Get all checked checkbox and return it as string
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
| function getCheckedStudents() { | |
| var students = $("input[name=student]:checked") | |
| .map(function () { | |
| return this.value; | |
| }).get().join(", "); | |
| return students; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment