Menus

Sunday 29 October 2017

Jquery Tutorials


Jquery Checkbox check all


Html Code

<input type='checkbox' class='checkall' id='check_all_id'>

Jquery

To use .prop() to set the checked property

$('#check_all_id').on('click', function(e) {        
        $('input:checkbox').not(this).prop('checked', this.checked);
    });




No comments:

Post a Comment