/ Published in: jQuery
Selects all checkboxes and checks or unchecks them.
chk_All = id(s) of the check box to add an onclick event for
Expand |
Embed | Plain Text
$(document).ready(function(){ $("#chk_All").click(function() { var checked_status = this.checked; $("input[type='checkbox']").each(function() { this.checked = checked_status; }); }); });
You need to login to post a comment.
