$("#<%=ApprovalSelectPanel.ClientID %> input:checkbox:checked").each(function(){
alert(this.val);
});
This isn't returned the value attribute on each checkbox, it's returning undefined
$("#<%=ApprovalSelectPanel.ClientID %> input:checkbox:checked").each(function(){
alert(this.val);
});
This isn't returned the value attribute on each checkbox, it's returning undefined
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);
alert(this.value), if you want to avoid a $ call.