Plugins
Last updated
Was this helpful?
Last updated
Was this helpful?
Describe what jQuery plugins are used for
Answer the question "Why aren't good or approved plugins included in the standard jQuery library?"
Include and implement jQuery plugins on web pages
Experiment with different plugins
Plugins are methods that extend jQuery's functionality. jQuery's tell us to think of the methods that come with jQuery core (eg. .addClass()
) as plugins too, but normally the term plugin refers that other people have written. These plugins aren't included in basic jQuery so we'll have to pull them in by downloading the code or using a CDN.
extra code that you don't use just bogs down your project
unopinionated -> customizable
jQuery plugins require jQuery in order to work, so the script tag that pulls in the plugin must come after the one that pulls in jQuery.
jQuery UI also provides elements with 'themes' or styling. In order to use these styled elements (dropdowns, accordions, etc.), be sure to include the appropriate jQueryUI CSS stylesheet in the head tag as well.
jQuery has it's own library of plugins for widgets and interactions called . You can find the CDNs for jQuery and jQueryUI .
The has examples of the plugins implemented.
Use to make an accordion menu.
Implement into your jQuery to-do list if you haven't already.
See the Pen by Brian Hague () on .