I have many checkboxes in my page and there is a select all checkbox which checks all the checkboxes. Somehow I want to emulate that click event of checkbox even if it\'s checke
You can also use this, I hope you can serve them.
$(function(){ $('#elements input[type="checkbox"]').prop("checked", true).trigger("change"); });
Item 1 Item 2 Item 3 Item 4 Item 5