Bummer! This is just a preview. You need to be signed in with a Treehouse account to view the entire video.
Introduction to jQuery Plugins1:19 with Andrew Chalkley
Developers can share their code to solve common problems, in jQuery these collections of code are called plugins.
[Website Waters: Island 3 Stage 2: jQuery Plugins with Andrew Chalkley]
You're back! So far, we've been writing a lot of our own code to solve our problems.
But when professionals encounter similar problems on a day-to-day basis--
such as, validating emaisl or creating an image or content slider.
Some developers share that code in libraries.
In jQuery, these libraries are called plugins.
Some plugins are straightforward to work to your site.
Others are a little more involved--where you take you take your site,
make some alterations to the HTML and CSS, and then put into your plugin--boom.
Either way, plugins are often great solutions to common problems.
In this stage, we're taking a look at the simple email validation plugin
to improve our contact form validation
and a more complex responsive slider plugin for our homepage.
People often share their code on GitHub or their personal website.
A quick Google search can often help you find what you're looking for,
but don't worry if the first one you try isn't quite right,
sometimes a little experimentation is needed.
Next up, improving our phone validation.
You need to sign up for Treehouse in order to download course files.Sign up