Skip to Content
Beginning jQuery
book

Beginning jQuery

by Jack Franklin
January 2013
Beginner
204 pages
4h 48m
English
Apress
Content preview from Beginning jQuery

CHAPTER 10

image

More jQuery Plug-ins

You ended the last chapter with a pretty awesome accordion plug-in that you built based on the initial accordion code you wrote in Chapter 7. In this chapter, you will take your Dribbble API work from Chapter 8 and turn it into a plug-in. You’ll do this by making a slightly different type of plug-in, one that exists directly on the jQuery object. This means instead of calling it on a set, as you did previously:

$("div").somePlugin();

You call it directly:

$.somePlugin();

There are certain situations in which you should use the first style, and other situations where you should use the latter. I’ll explain those. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro jQuery

Pro jQuery

Adam Freeman
Head First jQuery

Head First jQuery

Ryan Benedetti, Ronan Cranley
jQuery Cookbook

jQuery Cookbook

Cody Lindley

Publisher Resources

ISBN: 9781430249320Purchase book