Articles Posted in the " Jquery Checkbox " Category

  • Jquery Checkbox Event Handling

    Jquery Checkbox Event Handling

    $('#buttonid :checkbox').click(function() { var $this = $(this); // $this will contain a reference to the checkbox if ($this.is(':checked')) { // the checkbox was checked } else { // the checkbox was unchecked } });