Return to Snippet

Revision: 30823
at December 14, 2010 07:50 by nikefido


Updated Code
(function($){
	$.fn.functionName = function(options) {
	
		var options = $.extend({}, options);
		
		return $(this).each(function(i) {
			//Optionally use the .each() function
		});
		
	}//end $.fn
})(jQuery);

Revision: 30822
at August 23, 2010 11:28 by nikefido


Updated Code
(function($){
	$.fn.functionName = function(options) {
	
		var options = $.extend({}, options);
		
		return $(this).each(function() {
			//Optionally use the .each() function
		});
		
	}//end $.fn
})(jQuery);

Revision: 30821
at August 23, 2010 11:27 by nikefido


Initial Code
(function($){
	$.fn.functionName = function(options) {
	
		var options = $.extend({}, options);
		
		$(this).each(function() {
			//Optionally use the .each() function
		});
		
	}//end $.fn
})(jQuery);

Initial URL


Initial Description
A template of a basic jQuery plugin, including over-ridable options

Initial Title
jquery plugin template

Initial Tags
javascript, plugin, template, jquery

Initial Language
jQuery