I write a lot of posts that use jQuery but I haven’t gone through the basics of getting started with jQuery on your new website. There are just a couple of steps that you need to do to get started with using jQuery and getting it started right.
The first thing you’ll need to do is load jQuery into your website. The easiest way to do that is to add the following line inside the
<body> of your base HTML template that will be used throughout the site.
Google hosts a number of web libraries and they are a great way to get the latest version of various libraries without have to hit your servers with serving those same files. If you are using an older version, or an altered version, of jQuery you’ll want to host it yourself but this is the simplest way to get started.
Once that has been loaded into the
alert("Page has been loaded.");