Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript What Am I Clicking On? — Selecting nested elements Re: What Am I Clicking On? — Selecting nested elements

#88124
Mottie
Member

Are you wrapping your javascript inside of a document ready function?

$(function(){
$('#gallery img').click(function(){ ... });
});