vendredi 10 mai 2019

Trying to include Jquery file in HTML?

I'm trying to learn Jquery and running it locally on my mac but failing for some reason.

File Name: jquery-3.4.1.sh and jquery-3.4.1.min.js

<head>
    <link rel="stylesheet" href="styles.css">
    <script src="jquery-3.4.1.min.js"></script>
    <script src="jquery-3.4.1.js"></script>
</head>

Also tried using the online script line on the jquery website but still failed:

<script src="https://code.jquery.com/jquery-3.4.1.js" integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin="anonymous"></script>

EDIT: the buttons works online but when ran locally it does not work.

Aucun commentaire:

Enregistrer un commentaire