/ Published in: jQuery
Expand |
Embed | Plain Text
var users = new Array(); $("input:checkbox[name=user]:checked").each(function(){ users.push(this.value) })
Comments
Subscribe to comments
You need to login to post a comment.
dsoms on 04/05/11
javascript jquery checkbox checked
1 person have marked this snippet as a favorite
var users = new Array(); $("input:checkbox[name=user]:checked").each(function(){ users.push(this.value) })
Subscribe to comments
You need to login to post a comment.
$('input[name="mycheckboxes"]:checked').map(function(){ return $(this).val(); }).get().join(",");
then explode in PHP $mycheckboxes = explode(',',$_GET['mycheckboxes']);