How to write a simple jQuery plugin [closed]

a good starting pattern looks like:

(function($){
   $.fn.yourplugin = function() {
   };
}(jQuery));

Leave a Comment