How to use jQuery

tutorial and example
tutorial and example

If you want to use jQuery then firstly include it on the pages where you wish to take advantage of it. To do this you have to download the jQuery. You can download it from their website at www.jquery.com. After downloading the jQuery JavaScript file, you will have to reference it on your pages using the <script> HTML tag like this:

Now your page looks something like this:

Instead of downloading and hosting jQuery yourself, there is a modern approach. You can include it from CDN (Content Delivery Network).

Example:

Try Now