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
Like it has been said few times, you need to change your selector to
$("input[name='bla[]']")
But I want to add, you have to use single or double quotes when using [] in selector.
You are selecting inputs with name attribute of "bla"
, but your inputs have "bla[]"
name attribute.
$("input[name='bla[]']").each(function (index, obj) {
// loop all checked items
});
http://jsfiddle.net/26axX/