How to create a jQuery plugin with methods?
According to the jQuery Plugin Authoring page (http://docs.jquery.com/Plugins/Authoring), it’s best not to muddy up the jQuery and jQuery.fn namespaces. They suggest this method: (function( $ ){ var methods = { init : function(options) { }, show : function( ) { },// IS hide : function( ) { },// GOOD update : function( content ) { … Read more