Skip to content

Instantly share code, notes, and snippets.

@phette23
Created January 30, 2012 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phette23/1707177 to your computer and use it in GitHub Desktop.
Save phette23/1707177 to your computer and use it in GitHub Desktop.
jQuery Plugin Template
(function($){
$.fn.myPluginMethod = function() {
// keep it chainable, jQuery objects
// include multiple DOM elements
return this.each(function(){
// do something
});
};
}(jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment