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

jerred poitra
jerred poitra
7,241 Points

preventDefault is not working. Nothing appears in the console.

Someone else already posted this question and said the only way they could fix it was to start over from the beginning. Do I have to start over from the beginning?

Young Bae
Young Bae
18,429 Points

Same thing happened to me when using the workspace, so i just downloaded the project file and opened it on the text editor, and it worked!

1 Answer

matthew steiner
matthew steiner
6,264 Points

I had a similar problem - the pictures were still linked and I couldn't get anything to show up in the console. Then, I realized that I left out the the 'a' after #imageGallery and forgot to the load the variable in my console.log. When learning this stuff, it is amazing how many small details get left behind. I don't think you have to start over, maybe just re-look at his code or post what you have here so we can take a look.

Hope that helps!