How to Select a Class's Children
How can i select all elements within a class using jquery?
for example:
<li id="itemSlide_'.$item['id'].'">
<a> a tag</a>
<div>div tag</div>
<img src="imgtag" />
</li>
i want to display an img when one hovers over the <li> tag
$('[id^=itemSlide_]').hover(function(){
//display something
});
and i want to remove it when the users mouses out
$('[id^=itemSlide_]').mouseout(function(){
//remove display
});
however every child element of itemSlide_ triggers the mouseout event.
Is there a way around this?
If anyone needs better clarification, just ask.
Looking forward to your help,