Friday, July 8, 2011

How to check whether a check box is checked or not using jquery

<script type="text/javascript">
    $(document).ready(function () {

        $('[id$=chkAddress]').click(function () {
            if ($('[id$=chkAddress]').is(':checked')) {
                alert('check box is checked');
            }
            else {
                alert('check box is not checked');
            }
        });
    });
</script>

No comments:

Post a Comment