I want to make a website and I want to use jquery. But I can't import jquery in javascript.How can I import Jquery in a javascript file ?
Asked
Active
Viewed 54 times
-3
-
No,I am asking that how can i import jquery in a js file ? – Cihan Toker Jun 20 '22 at 17:09
-
Cannot you use the `import` syntax? – samuelnehool Jun 20 '22 at 17:20
1 Answers
0
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
Just add this in title of your main HTML file and then you would have access to $
which can be called from anywhere by any script which is linked to the HTML file.

Thearcane
- 59
- 8