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

CSS jQuery Basics (2014) Introduction to jQuery Include jQuery in a Project

David White
David White
7,480 Points

help

We've already got our app.js included in our page. The only thing missing is jQuery. Find the CDN hosted jQuery javascript file on the jQuery.com and include it in the project What do they want here I know i have to add the jquery tag but i don't know what it is

index.html
<!DOCTYPE html>
<html>
<head>
    <title>Take Evasive Action</title>
    <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" title="no title" charset="utf-8">
</head>
<body>
    <p class="warning">
      <span>It's A Trap!</span>
    </p>
    <div class="image">
        <img src="img/ackbar.gif">
    </div>

    <script src="js/app.js" type="text/javascript" charset="utf-8"></script>











</body>
</html>

1 Answer

Aaron HARPT
Aaron HARPT
19,845 Points

You get a CDN online, here is a site where you can accomplish that, (https://developers.google.com/speed/libraries/). Once you are there, scroll down till you find the script tags for Jquery, then copy one and paste it right before the closing body tag (as you would for a script tag). I use the second one (which is version 2.1.3, but the other one works but is just a earlier version). Hope that helps.