Mega Code Archive

 
Categories / JavaScript Tutorial / JQuery
 

Adds two plugin methods

jQuery.fn.extend({   check: function() {     return this.each(function() { this.checked = true; });   },   uncheck: function() {     return this.each(function() { this.checked = false; });   } });