Skip to main content

How To Setup jQuery in 3 Easy Steps

By Sam Deering



Free JavaScript Book!

Write powerful, clean and maintainable JavaScript.

RRP $11.95


What is jQuery? and how can I start using it? 3 Easy Steps!

These instructions are to help all you jQuery newbies out there who might be using jQuery for the first time and are wondering “how do I set jQuery up?”. Well there are a two different ways to do this:

The first way is to self host your jQuery package:

  1. Download the latest jQuery Package
  2. Save it in a folder called “js”
  3. Include this line in your web page:

Note: There are 2 versions of jQuery, a minified version and a source version. I recommend that you use the minified version as it is smaller in size and will make your web page load faster.  The Benefits of jQuery are many but the main difference between the jQuery source version and the jQuery minified version is that the jQuery source version is human readable for you to check how the various jQuery functions are put together.

The second way is to load your jQuery package “on the fly” Load jQuery with Google Libraries API.

I would recommend to use the first method and host jQuery package yourself but the second method is good also: See Benefits of Google hosted jQuery.

Sam Deering has 15+ years of programming and website development experience. He was a website consultant at Console, ABC News, Flight Centre, Sapient Nitro, and the QLD Government and runs a tech blog with over 1 million views per month. Currently, Sam is the Founder of Crypto News, Australia.

New books out now!

Learn valuable skills with a practical introduction to Python programming!

Give yourself more options and write higher quality CSS with CSS Optimization Basics.