I have Inputs
<input name="v[]" value="1" type="checkbox">
<input name="v[]" value="2" type="checkbox">
<input name="v[]" value="3" type="checkbox">
<input name="v[]" value="4" type="checkbox">
Where checked with this code
$(document).on('click',"tbody tr", function() {
if ($(this).hasClass('info')) {
$(this).removeClass('info');
$(this).find('input[name="v[]"]').prop('checked', false);
} else {
$(this).addClass('info');
$(this).find('input[name="v[]"]').prop('checked', true);
}
});
I want get array of checked Inputs with their values. How i can do it?
Thanks.