Chapter 8. Understanding Plugin Development

In this chapter, we will cover the following topics:

  • Creating a plugin template
  • Creating a tooltip plugin
  • Building a content and image slider plugin
  • Creating an RSS feed reader plugin
  • Coding an image cropper plugin from scratch

Introduction

jQuery plugins allow the developer to write portable code that can be reused within any jQuery project quickly. As part of this book, we have created a lot of functionality that you may want to use in multiple projects. By creating a jQuery plugin with the required functionality, you can abstract the complexity of this functionality and make it simple to include wherever you need it.

Before you start this chapter, create an easily accessible directory called chapter8. Within ...

Get jQuery 2.0 Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.