I\'m trying to create a div popup gallery type thing. But I\'m having an issue with my approach.
div
I have a few linked thumbnail images, which link to the lar
Use class instead of ID, repeating ID's isn't a good idea.
Using classes you solve your problem: jsfiddle
$('.galImage').click(function(e){ e.preventDefault(); alert($(this).attr("href")); });