How to setup jQuery on my web server?

jQueryWeb DevelopmentFront End Technology

To run jQuery on your web pages, add the library file within a pair of <script> tags. The location of the jQuery library file is added under the <script> tags, which point to the location of the jQuery library file on the Web server. Here’s an example,

<script src="jquery/jquery-3.2.1.min.js"></script>

The location of the jQuery file on the web server should be the same as what you added in the script tags. Even if you don’t want to go for the hassles in setting up jQuery, then go for CDN. With Google CDN, it will be an easier way to include jQuery without any need of about uploading it on the web server.

Here’s how to add jQuery using Google CDN:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>


raja
Published on 05-Dec-2017 18:50:14
Advertisements