Language: JavaScript
jQuery Plugin Template - With options
;(function($){ $.fn.pluginName = function(options) { var settings = $.extend($.fn.pluginName.defaults , options); return this.each(function(i, el) { // Do your stuff here. }); }; $.fn.pluginName.defaults = { // Default public options }; // Put Internal Variables and Functions here })(jQuery);
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search


Edited to have parameter of $ instead of verbose jQuery