I need to send a group of checkboxes (with some other data as well) via ajax in jquery.
What I\'ve done so far is:
var arr = $(\'#somediv input[type
Ran into a similar problem and after much pulling of hair fixed it with SerializeArray
HTML
= $userName;?>
jQuery
var userList = $('input[type=checkbox]:checked').serializeArray();
PHP
$userList = $_POST['userList']; for($i=0;$i