Proper way to send multiple checkbox values through a .get?
I have checkbox inputs like so:
<input type="submit" value="One" id="one" />
<input type="submit" value="Two" id="two" />
Say they are both checked.. How would I send those values through the code below properly?
$('#submit').click(function(){
value = $('input:checked'); // not sure how to collect all checkbox values here so they can be sent..
$.get('/file.php', {
action: 'update',
value: value
}, function (html) {
$("#display").html(html);
});
});