Harendra Harendra - 10 months ago 61
jQuery Question

ezMark checkbox not checked by jQuery

I am using the

jQuery plugin for checkboxes, but when I try to check a checkbox using the following code, it is not working.

$('#chk').prop('checked', true);

Answer Source

You have to trigger the change event:

$('#chk').prop('checked', true).change();