There are two ways to add jQuery to your website.
- Download the jQuery library from jQuery.com
- Include jQuery from a CDN (Content Delivery Network)
we will use jQuery CDN (Content Delivery Network), by adding this code in the
Now you are ready to write jQuery script.