jQuery Delay Question
Posted
by Fuego DeBassi
on Stack Overflow
See other posts from Stack Overflow
or by Fuego DeBassi
Published on 2010-06-06T01:53:19Z
Indexed on
2010/06/06
2:02 UTC
Read the original article
Hit count: 358
<script type="text/javascript">
$(document).ready(function() {
$(".module .caption").hide();
$(".module").hover(function() {
$(this).find(".caption").slideDown().end().siblings('.module').addClass('under');
},function() {
$(this).find(".caption").slideUp().end().siblings('.module').removeClass('under').delay(10000);
});
});
</script>
This works great, except the .delay doesn't work, is my syntax wrong? I'm just trying to accomplish haveing the .removeClass("under") delayed by a second or two when the mouse un-hovers. I don't want to delay the slideUp.
Any ideas?
© Stack Overflow or respective owner