how to jqeury importing to index.html
See original GitHub issueI am gonna to import jquery to index.html.
So I can use jquery in all js file without import $ from 'jquery'
.
But it is not working as my thought.
Is it impossible?
Thanks is advance…
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to add jquery library to an html file? - Stack Overflow
The jQuery library is a single JavaScript file, and you reference it with the HTML tag (notice that ... C:\xampp\htdocs\Firstpage\index.html.
Read more >How to embed jQuery into HTML page - Makitweb -
1. Download and Include · Navigate to jQuery Official website. · The library is available in two versions – compressed and uncompressed. ·...
Read more >How to add jQuery to Html - Javatpoint
If we want to add the jQuery to Html page by downloading the jQuery file, then we have to follow the steps which...
Read more >How To Add jQuery To HTML?
In this method, you have to download the jQuery js file and include it using a simple <script > tag within your HTML...
Read more >How to add jQuery code to HTML file ? - GeeksforGeeks
Use this link to download the jQuery file from the official JQuery website. · After downloading, just move the downloaded file into the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As I suggested above, instead of adding it to
index.html
run:and then use
However, if you insist on adding it to HTML, you need to add
const $ = window.$
to the top of the file as described in using global variables.Maybe try
window.$