jQuery Check Box change Event

Code  jQuery :


<script>
        $(document).ready(function () {
            $("#No").change(function () {
                if ($(this).is(":checked")) {

                    var returnVal = confirm("are you sure ??? ");
                    $(this).attr("checked", returnVal);
                    alert(" no check box is checked");
                }

            });
        });

     
    </script>

Comments

Popular posts from this blog

Search Record From Table Using jQuery in Asp.net core MVC

Calendar in Asp.net

CheckBox in Asp.Net MVC (Insert Data of CheckBox in Database and GetData Of checkBox From DataBase)