Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Using jQuery Plugins!
You have completed Using jQuery Plugins!
Preview
Most plugins are highly customizable. You can control how they look, how they behave and what they do simply by passing an object literal full of settings.
Related Videos
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
A CSS file, a JavaScript file,
and perhaps some images.
0:00
In addition, many plugins are added to
a web page following the same steps.
0:00
Most plugins are so easy to use,
that you simply set up your page,
0:04
select an element on the page,
and call the plugin method.
0:08
However, good plugins are powerful, and
0:12
let you customize how they work, simply
by setting different plugin options.
0:14
For most plugins,
you set options by simply passing
0:19
a JavaScript object literal
when you call the plugin.
0:23
A JavaScript object literal,
is simply a set of name value pairs.
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up