I have my check box control as shown.
<ItemTemplate>
<asp:CheckBox ID="chkdelete" runat="server" Text='<%# Bind("OrderNumber") %>' Font-Bold="false" />
</ItemTemplate>
I am trying to delete multiple grid view records using jQuery Ajax call.
I am trying to get all checked check box values as shown.
var checkboxes = [];
$('input:checkbox:checked').each(function() {
checkboxes.push($(this).val());
});
I am guessing you want the
Textattribute of the check box, not the value itself. This is placed in alabelelement next to theinput[type="checkbox"]:I am not sure if ASP.NET puts the label before or after the input so you may need to use
prev()instead ofnext().