Reputation: 61727
$("#<%=ApprovalSelectPanel.ClientID %> input:checkbox:checked").each(function(){
alert(this.val);
});
This isn't returned the value attribute on each checkbox, it's returning undefined
Upvotes: 1
Views: 298
Reputation: 30498
In this context, this
is the DOM object.
Try this instead:
$("#<%=ApprovalSelectPanel.ClientID %> input:checkbox:checked").each(function(){
alert($(this).val());
});
Although, this work have worked as well:
alert(this.value);
Upvotes: 5