How to use a jQuery library in your project ?
In this article, we will see how to use jQuery library in a project. There are two methods to add jQuery library in a project which are –
- Include jQuery library from CDN link
- Download jQuery library from the official website
Include jQuery library from CDN link: CDN stands for Content Delivery Network which is basically a set of servers used for storing and delivering data. Basically, these jQuery library files are already uploaded to various CDNs and we can use them directly on our web page. Then, we don’t need to download any files on our local machine.
We can see the CDN link inside the “src” attribute. We have successfully added jQuery to our web page. We can use all the features of jQuery on our page. While loading the page, the browser will automatically download the jQuery library files from the CDN link.
Download the jQuery library: In this section, first we download the jQuery library from the downloadable link. After downloading the files, we will add the downloaded files to our web page in this manner.
Please Login to comment...