Load Jquery

Getting Started With jQuery by Eric on February 1, 2020

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.<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> 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 <body> of your base HTML file you can start writing JavaScript using jQuery.  The best way to ensure...