Here is the beginning of my post. And here is the rest of it. /*! * jQuery plugin * What does it do */ (function($) { $.fn.PlugInName = function(opts) { // default configuration var config = $.extend({}, { opt1: null }, opts); // main function function DoSomething(e) { } // initialize every element this.each(function() { DoSomething($(this)); }); return this; }; // start $(function() { $("#select").PlugInName(); }); })(jQuery);
Tutorials, lessons, and how-to guides for Web Design/ Development and life