I want to slideUp some divs, then slideDown 1 div. However, I'm having some issues.
$("#divDocument,#divLocation").slideUp("normal", function()
{ $("#divSearch").slideDown("normal", doStuff()); });
With this code, divDocument is visible, divLocation isn't. Because the divLocation is already hidden the doStuff() event fires immediately, even though divDocument isn't hidden yet.
$("#divDocument).slideUp("normal", function()
{ $("#divSearch").slideDown("normal", doStuff()); });
This code works fine, as it waits until divDocument is fully hidden before calling doStuff(). Am I using the multiple element selector wrong here? Am I doing something else incorrectly?