Hi,
I wanted to create simple plugin using jquery. Also suggest me standard practice while writing jquery plugin.
Please folks suggest me some better pointers.
Thanks,
-Pravin
Hi,
I wanted to create simple plugin using jquery. Also suggest me standard practice while writing jquery plugin.
Please folks suggest me some better pointers.
Thanks,
-Pravin
a good starting pattern looks like:
;(function($){
$.fn.yourplugin = function() {
};
}(jQuery));
A wrote step-by-step guide on how to create practical drop shadow jquery plugin you may want to check out here:
With very simple code, you create fully functional jQuery plugin.
I recommend that you have a look here: http://docs.jquery.com/Plugins/Authoring