Published in: JavaScript
("#checkboxall") = checkbox identifier [@name=checkall] = name for all linked checkboxes
$(document).ready(function(){ $("#checkboxall").click(function() { var checked_status = this.checked; $("input[@name=checkall]").each(function() { this.checked = checked_status; }); }); });
Comments
Subscribe to comments
You need to login to post a comment.

do you know how to do this with arrays? like ...