Adds two plugin methods. : jQuery « jQuery « JavaScript DHTML






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; });
  }
});

   
    
  








Related examples in the same category

1.If jQuery is installed and running
2.Adds two functions into the jQuery namespace.
3.Is jQuery ready
4.Create Text node from query list
5.Show the order in the jQuery object.
6.Pass array returned from jQuery to a function