Chapter 12. jQuery Plugins

Mike Hostetler

Introduction

A primary goal of the jQuery JavaScript library is to remain a fast and concise alternative to other JavaScript libraries that are available in the open source world. A key principle toward this goal is ensuring that the jQuery core addresses the needs of most developers, while remaining fast and concise. Developers may have needs that aren’t completely satisfied by the jQuery core. Or, a developer may write an extension to core jQuery functionality that may be useful to a significant segment of jQuery users but shouldn’t be included in the jQuery core.

jQuery was designed to be extensible in a variety of ways. The recipes in this chapter are intended to introduce the reader to the world of jQuery plugins.

12.1. Where Do You Find jQuery Plugins?

Problem

You’re trying to build something with jQuery that requires functionality that doesn’t exist in the jQuery core. The problem is one that other developers have likely run into before, and you think a plugin may exist. Where should you start looking to find plugins, and how should you evaluate the plugins that you find?

Solution

Search through the following repositories for jQuery plugins:

jQuery Plugin Repository

http://plugins.jquery.com

Google Code

http://code.google.com

GitHub

http://github.com

Google with special queries

http://google.com

SourceForge

http://sourceforge.net

Discussion

There are a few places around the Web that jQuery plugins may be found. Because of the nature of jQuery plugins, ...

Get jQuery 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.