click events not firing on inner divs

anadlinia

New Member
If I take the .thumbnail divs outside of the #thumbhider and #thumbcontent divs then the click events work fine and as expected. Currently they do not.URL: http://www.samcoles.co.uk/dustbowl/guitars.phpI'm guessing this is something to do with the overflow:hidden on the containing div? How can I work around this?the javascript:\[code\]//this is within $(document).ready function$(".thumbnail").click(function () { var IMAGE_DIR = "images/guitars/"; var img = $(this).find("img").attr("alt"); $("#mainphoto").attr("src", IMAGE_DIR + img); if(captions) { $("#imgcaption").text(captions
b]\[code\]div.thumbnail { background-color:
 
Back
Top