| Viewed 62 times

how to use jquery in html


how to use jquery in html

1 Answer
Mikdam Qandeel
Answered
4

jQuery is a fast, small, and feature-rich JavaScript library.

There are two ways to add jQuery to your website.

  1. Download the jQuery library from jQuery.com
  2. Include jQuery from a CDN (Content Delivery Network)

we will use jQuery CDN  (Content Delivery Network), by adding this code in the <head> tag.

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

Now you are ready to write jQuery script.