I need to get my series of checked checkboxes without getting all the rest on the page so I’m trying to narrow down specifically but the following code does not seem to work.
$('#button').click(cc);
function cc() {
var va = [];
$('input:checkbox[name=lpids]:checked').each(function(i){
va.push(this.id);
});
alert(va);
}
and
<asp:CheckBox ID="ck0" runat="server" name="lpids" ClientIDMode="Static"/>
Now I looked on up getting specific values and the above should work but I’m getting nothing.
EDIT:
<span name="lpids" class="chk"><input id="ck6" type="checkbox" name="ctl00$ck6" /></span>
What I’m getting in source code.
From what is generated, this should work