Writing a jQuery Plug-in
jQuery plug-ins are something that beginners tend to shy away from or are afraid to use. Plug-ins seem to be built up in people’s minds as incredibly complex things to use, but once you learn how they work, you find them actually very straightforward, and you’ll find yourself making multiple plug-ins while working. Plug-ins are not as complicated as you might think, and hopefully I’ll demonstrate that in this chapter.
After discussing the benefits of the plug-in and when to turn code into one, you will learn about different types of plug-ins, build a few small plug-ins to see how they work, and discover how ...