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

oren tal
oren tal
5,738 Points

it just doesn't work

i have got exactly the same code and tried all other's suggestion but it still goes to dead end and not loging in the console

2 Answers

Jeff Wilton
Jeff Wilton
16,646 Points

Your browser might be cached (using old content instead of new). Try clearing your browser cache, and then close the browser tab and open a new one and see if that works. When doing web development, I often log different things to the console so I know the browser has my new content. I also will shift+left click the refresh icon in the browser and/or press shift+ctrl+R to "hard refresh" the page. Lastly, make sure you are using console.log in a spot that you know for sure will be executed when the page loads, and then perhaps another one inside a function you want to investigate.

Hope this helps.

oren tal
oren tal
5,738 Points

worked great!