// Simplest plugin ever (function($) { $.myPlugin = function() {}; })(jQuery); // Two ways to call it jQuery.myPlugin(); jQuery(function($) { $.myPlugin(); }); With the realization that jQuery gives you no more than this basic structure to write fat, complex plugins, the youthful sense of exploration that brought you to jQuery quickly evaporates into an empty void of nothingness. You google “jQuer
![Winton Welsh has a blog - jQuery Plugin Patterns](https://cdn-ak-scissors.b.st-hatena.com/image/square/e64ede238628fdd2c4afa9c2ec626d27fac2da67/height=288;version=1;width=512/http%3A%2F%2Fassets.tumblr.com%2Fimages%2Fog%2Ffb_landscape_share.png)