Take this code for example:
$('.photo').hover(
function() {
//display heading and caption
$(this).children('div:first').stop(true,false).animate({top:0},{duration:200, easing: 'easeOutQuart'});
$(this).children('div:last').stop(true,false).animate({bottom:0},{duration:200, easing: 'easeOutQuart'})
})
Lets say I want to know which element was selected with this line:
$(this).children('div:first')
Is it possible somehow to alert the targeted element? I tried:
something = $(this).children('div:first').val();
alert (something);
or
something = $(this).children('div:first');
alert (something);
With the first example I get blank alert. With second - Objext object.
Regards,