Setting Up jQuery

Including jQuery via CDN

Using a Content Delivery Network (CDN) ensures fast loading speeds and better caching.

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>

Local Installation

To use jQuery offline, download it from jQuery's official website and include it in your project:

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>