I'm having problems selecting the div i want to animate in jquery. I have this html
<div id="perimg">
<a class="false" href="show_model.php?param=Addison">
<div id="name_container"><img id="slide" src="../../pictures/picture.jpg"><div id="name">Picture name</div></div>
</a>
</div>
I used that markup because i want to slide up the #name over the picture on hover. I have 3 pictures per row and 8 rows and my jquery only targets the first image.
$('#slide').hover(function(){
$(this).parent().find('#name').animate({"bottom" : 0}, 800)
}, function(){
$(this).parent().find('#name').animate({"bottom" : "-20px"}, 800)
});
I even tryed going $('#perimg').children() but that didn't help either.