Because of the influx of people using jQuery, Google has set up a content delivery network that serves up the jQuery library for us without anything being required in our project. Let's tell our
layout.php file where to find jQuery.
layout.php file, and add the following code right before the end of the
We just added one line of code before the end of our
body tag in the
layout.php file. That's all it took to use jQuery with our project! You may be wondering why we decided to put our jQuery library all the way at the bottom of our file. ...