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

Aurora Ruggieri
Aurora Ruggieri
4,361 Points

The exercise does not go out. In the console I receive 2 errors

The exercise does not go out, not even by downloading and testing the teacher code. It gives me these two errors: GET http://code.jquery.com/jquery-1.11.8.min.js 404 (Not Found) flickr.js: 1 Uncaught ReferenceError: $ is not defined (...)

$(document).ready(function(){ $('button').click(function (){ $('button').removeClass("selected"); $(this).addClass("selected"); }); });//end ready

1 Answer

Albert Czarnecki
Albert Czarnecki
12,287 Points

In your html code try to change line:

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

to

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