I have several input checkboxes, (they name is same for send array on server).
So, I need get each value this checkboxes and I want use as selector checkbox names, this not works, help please.
<form>
<input type="checkbox" name="bla[]" value="1" />
<input type="checkbox" name="bla[]" value="2" />
</form>
js:
$(document).ready( function () {
$("input[name=bla]").each( function () {
alert( $(this).val() );
});
});