When trying to open Jquery after installing it on Chrome, I get this error:
And when I download it on Firefox, I get this error:
Can anyone tell me how to fix these issues? I'm using Windows 10, if that helps.
Webmasters Stack Exchange is a question and answer site for webmasters. It only takes a minute to sign up.
Sign up to join this communityJQuery isn't something you "open" it is a JavaScript library you include and reference in your website's code via <script></script>
tags.
An example taken from the jQuery site itself is:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Demo</title>
</head>
<body>
<script src="jquery.js"></script>
<script>
$(document).ready(function() {
alert('The DOM is loaded.');
});
</script>
</body>
</html>
I suggest reading up more about jQuery in there own docs or just searching the web. Also jQuery is hosted on many CDN's so you don't even need to download it technically to use it, you can include it in your code via
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
Keep in mind the pro's and con's of loading such libraries from a third party/CDN.
PROS
CONS
Obviously more pros and cons are out there but you can lookup that up if you want more information; going deeper here is beyond the scope of this question.