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
Use serialize(), as val() just takes the value of the first element in the jquery collection. http://api.jquery.com/serialize/
serialize()
val()
var postdata = $('#somediv input[type="checkbox"]').serialize(); $.post("/somephpfile.php", postdata, function(data) {...