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

How To insert Radio Button Data in DataBase -- MVC

Toolbox Webparts Controls