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 jQuery Basics (2014) Introduction to jQuery Include jQuery in a Project

The cdn urls of jquery were changed long time ago. I would like to proceed the course, but I can't finish the challenge.

What url I should use to finish the challenge?

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">
   <script src="https://cdn.jsdelivr.net/jquery/3.2.1/jquery.min.js"></script>
</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>

3 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Eva,

I'm not sure I understand what you mean by the urls were changed and your misunderstanding of what to put in to pass the challenge?

If you just go to the link provided in the challenge's instructions, you are taken to the jQuery CDN website. There you can select any of the links provided, and they are all current urls. Just select one, I chose the most recent release, and paste it into the challenge. It worked and passed when I tried it...

Keep Coding! :) :dizzy:

Hi. I just trying to finish this challenge, but I tried to use many urls, and everything is wrong. How can I go on to next JQuery lessons?

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

As I stated above, all the URLs from the specified website do work and pass the challenge. However, it looks like you are using a URL that is not from the website the challenge specifically says to use. You seem to be using a URL provided by cdn.jsdelivr.net, which is not what the challenge is asking for. If you use one of the URLs from the jQuery CDN website specified in the instructions, the challenge will pass.

For example, I picked the 3.2.1 minified version as you have above:

<script src="http://code.jquery.com/jquery-3.2.1.slim.min.js"></script>

and it passes the challenge just fine.

Thank you! It works! Now I can go on.