Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ozgur Parlakkilic
8,399 PointsDoesnt seem to be working on my browser chrom
I dont know what i am doing wrong but I am not getting the same results.
$("#imageGallery a").click(function(event){ event.preventDefault(); var href = $(this).attr("href"); console.log(href);
<body> <h1>Image Gallery</h1> <ul id="imageGallery"> <li><a href="images/refferal_machine.png"><img src="images/refferal_machine.png" width="100" alt="Refferal Machine By Matthew Spiel"></a></li> <li><a href="images/space-juice.png"><img
3 Answers

Steven Parker
221,328 PointsYou just have a typo.
On the first (non-comment) line of your JS code, you wrote "overlay" instead of "$overlay" (with a dollar-sign).

Ozgur Parlakkilic
8,399 PointsThank you soo much dude, I knew it had to be a typo and I looked everywhere.. I though geez right on the first line too, I guess I am just Grinding too hard. Thanks again
Steven Parker
221,328 PointsSteven Parker
221,328 PointsThe code does not appear to be complete. It might be better if you make a snapshot of your workspace and post the link to it here.
Also, when posting code, use the instructions for code formatting in the Markdown Cheatsheet pop-up below the "Add an Answer" area.