Miscellany
public javascript v1 · immutable $('<input type="checkbox" class="select-all-checkbox form-checkbox" />').prependTo('th.select-all').change(function() { var self = this; $('input:checkbox:not(.select-all-checkbox)', this.form).each(function() { this.checked = self.checked; $(this).parents('tr').toggleClass('selected'); }); });