Unnamed
public javascript v1 · immutable $('a.check-all').show().toggle(function() { $('input[@type=checkbox]', this.form, function() { $this.checked = true; }); $(this).html('Check none'); return false; }, function() { $('input[@type=checkbox]', this.form, function() { this.checked = false; }); $(this).html('Check all'); return false; });