Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Trent Stenoien
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Trent Stenoien
Full Stack JavaScript Techdegree Graduate 21,632 Points

Trouble linking to jquery

Hi! I'm trying to stick jquery onto my page, but it won't go. I made a Yahtzee game in vanilla JS and decided to switch over to jquery for the practice, but the console just says "GET file:///C:/Users/Trent/Documents/HTML,%20JS,%20CSS/jquery-3.2.1.min net::ERR_FILE_NOT_FOUND" then points to the line in my HTML where it's supposed to find the file. I'm not sure what's going wrong.

Here's the relevant HTML. The file jquery-3.2.1.min is one folder up.

<!DOCTYPE html>
<html lang="en">
    <body>
        <script src="../jquery-3.2.1.min"></script>
        <script src="Yahtzee.js"></script>
        <script src="highScores.js"></script>
    </body>
</html>

Do I need to do anything more to import jquery than just download it and link to it in the HTML?

1 Answer