2 $.fn.select_all = function() {
3 /* Multicheckbox selector */
6 //If checkboxes are 0 then do not show at all
7 if (this.find('input[type=checkbox]').size() > 0) {
9 var selectorbox = $("<input>")
18 var checked_status = this.checked;
19 form.find("input[type=checkbox]").each(function()
21 this.checked = checked_status;
24 var selectorlabel = $("<label>")
28 .text("Select All: ");
30 selectorlabel.insertBefore(form);
31 selectorbox.insertBefore(form);