Harendra Harendra - 1 month ago 10
jQuery Question

ezMark checkbox not checked by jQuery

I am using the

ezMark
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

You have to trigger the change event:

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