Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

I already went to the Jquery website and i cant figure out the code i need to copie into this file.

The Video shows how to get the cdn code, but the website currently dose not have the same code in it as it was shown on the video, and i have no idea how to find the correct code.

<!DOCTYPE html>
    <title>Take Evasive Action</title>
    <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" title="no title" charset="utf-8">
    <p class="warning">
      <span>It's A Trap!</span>
    <div class="image">
        <img src="img/ackbar.gif">
  <script   src="https://code.jquery.com/ui/1.12.0-rc.1/jquery-ui.js"   integrity="sha256-IY2gCpIs4xnQTJzCIPlL3uUgSOwVQYD9M8t208V+7KA="   crossorigin="anonymous"></script>
    <script src="js/app.js" type="text/javascript" charset="utf-8"></script>

3 Answers

Sam Okasha
Sam Okasha
10,343 Points

It looks like they changed the download page. You just have to click through to http://code.jquery.com/ and choose what version you want to use and clicking on 'uncompressed' or 'minified' to get the link.

Alternatively you can use the google CDN: https://developers.google.com/speed/libraries/#jquery

26,543 Points

Hi A.Perez,
you're linking to the jQuery UI that's a different Library.
try this one:

<script src="https://code.jquery.com/jquery-git.js"></script>  
<script src="js/app.js" type="text/javascript" charset="utf-8"></script>  

Thanks guys, I ended up going to http://code.jquery.com/ and getting an uncompressed link. It was confusing at the beginning, but i think i get it now.

Thanks again