Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get checked value of checkbox in jquery

  $("#check").change(function () {
            if (this.checked) {
                //I am checked
                name_val = $('#name').val();
                $('#player').val(name_val);
            } else {
                //I'm not checked
                $('#player').val('');
            }
        });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #checked #checkbox #jquery
ADD COMMENT
Topic
Name
3+1 =