How do you add jQuery to a web page?
Use a script tag, before your own code:
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="js/app.js"></script>
Other ways: download the file and use a local path, or install with npm install jquery. To check that it works, type $.fn.jquery in the browser console. See jQuery Get Started.
Learn more about the similar topics:
| Tutorials |
|---|
| jQuery Introduction |
| jQuery Get Started |
| jQuery Syntax |
| jQuery Document Ready Function |
| jQuery noConflict() Method |
| jQuery vs Vanilla JavaScript |
| jQuery 4 and Upgrading from jQuery 3 |
| Exercises & Assignments |
|---|
| No Content Found. |