Posted on: 9/4/2014 5:45:25 AM | Views : 454

Hi,
I want a jquery validation, If a checkbox is unchecked on button click it should show an alert message. I tried with jquery but it is not working. Please see the code for your reference:
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#btnSubmit").click(function () { if ($('#chkBox').attr('checked', true)) { } else { alert("message"); } }); }); </script> <asp:CheckBox ID="chkBox" runat="server" class="echeckbox" Style="vertical-align: middle;" /> <asp:Button ID="btnSubmit" Text="CLICK HERE" class="button-form" runat="server" OnClick=&q ...

Go to the complete details ...