Here's a snippet of my code:
$(".item").click(function () {
alert("clicked!");
});
And I have (hypothetically; in actually it's far more complicated) the following on my page:
<a href="#" class="item"><img src="1.jpg" /></a>
However, when I click the image, I do not get an alert.
What is my mistake?