I have a CheckBoxes in a GridView, Now i want to check whether CheckBox is checked or not.
<asp:CheckBox ID="cbIsReceived" runat="server" AutoPostBack="true" Checked='<%# Eval("IsReceived") %>' OnCheckedChanged="cbIsReceived_CheckedChanged" cssClass="cbIsReceived"/>
I am using the following Jquery to see the CheckBox state.
$('.cbIsReceived').live('click', function () {
var result = $(this).is(':checked');
alert(result);
});
Which always alert false. even if i check it.
Please help.
or
Use on() intsead of deprecated live()