I have several images with the same class and would like to set up a click function that changes the text in some elements based on which image is clicked. My if statement is not working, I'm not entirely sure why because I've used this method before, or so I thought.
$('.gallery_image').click(function(e) {
var t = $(this);
if(t.id == 'csf') {
console.log('It works!');
}
});