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) Creating a Simple Lightbox Perform: Part 2

can't get jquery

when clicking one of the images, I get in the console this error:

GET file://code.jquery.com/jquery-1.11.3.min.js net::ERR_FILE_NOT_FOUND

3 Answers

I only did what's shown in the tutorial..

        <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> 

(under head)

but for now, I tried :

       <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>

and it worked...

the script referenced in the code is wrong. if you could change it by including "http://", the error will be resolved. check my answer below which might help you.

thanks, aishu

Julian Aramburu
Julian Aramburu
11,368 Points

Hi Ravit! Could you provide your code to us in order to check it?

Hi,

Even i faced a similar issue when i executed my code Sublime text instead of treehouse workspace. When you change the script by including "http://", the error is resolved. Check if it works for you.

Error Script : <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
To change(correct): <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>

Thank you, Aishu