css - make jquery wait before performing the next action -


i have fiddle.

on hover: second div must slide down, third div.

when hover lost: third div must slide up, second div.

how can it?

http://jsfiddle.net/sexns/6/

$(document).ready(function(){   $(".signincontainer").hover(function(){       $(".myprofile").slidetoggle(function(){         $(".logout").slidetoggle();       });   }); }); 

you can use callback function, that.

$(document).ready(function(){   $(".signincontainer").hover(function(){     $(".myprofile").slidetoggle(function(){       $(".logout").slidetoggle();});   }); }); 

check out fiddle

if want right order when mouse leaves, this

$(document).ready(function(){   $(".signincontainer").hover(function(){       $(".myprofile").slidedown(function(){$(".logout").slidedown();});   }, function(){       $(".logout").slideup(function(){$(".myprofile").slideup();});   }); }); 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -