Skip to content

Instantly share code, notes, and snippets.

@matsumotius
Created March 28, 2012 09:52
Show Gist options
  • Save matsumotius/2225115 to your computer and use it in GitHub Desktop.
Save matsumotius/2225115 to your computer and use it in GitHub Desktop.
jQuery plugin sample
(function($) {
/* extend jQuery */
$.fn.yellow = function(options) {
$(this).css('background-color', 'yellow');
return "plugin test";
};
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment