Harendra Harendra - 1 year ago 127
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();
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download