Reputation: 37464
Using jQuery how can I tell if the second "here" div has been clicked?
<div class="image"></div>
<div class="image"></div>
<div class="image here"></div>
<div class="image here"></div>
<div class="image here"></div>
Upvotes: 0
Views: 105
Reputation: 4024
This is an option. Here is a fiddle
$('.image.here:eq(1)').click(function(){
alert('here')
});
Upvotes: 5