Writing a jQuery plugin.
Posted in Coding, Development, Javascript, Reference on January 5th, 2009 by Tony – Be the first to commentDan Wellman has written an excellent article, The Definitive Guide to Creating a Practical jQuery Plugin. He takes you step-by-step through the entire process.
In this article we’re going to be building our very own jQuery plugin step-by-step from scratch; jQuery makes this task exceptionally easy for us, giving us a simple method of packaging up our scripts and exposing their functionality, and encouraging the use of scalable and reusable object-oriented techniques.
Writing a jQuery plugin makes sense if you have code you reuse a great deal. You can drop code into your site and have it work right away with little or no tweaking of the code.
He takes you through the Adding Configurable Properties, building Constructor Methods, and adding to the plugin’s API.
It’s a very well written tutorial, easy to follow, easy to help you along.