Menu
Now that .toggle() has been removed from jQuery, I’m stuck on a particular script:
[CODE]jQuery(“#cornerBtn”).click(function(e) {
jQuery(this).toggleClass(“active”);
jQuery(“#overlayContainer”).slideToggle(500, “swing”, function() {
jQuery(“#overlay .box”).fadeIn();
});
e.preventDefault();
});
This works fine. But when the button is clicked again — I need the #overlay .box DIV to fade out BEFORE the slideToggle is triggered again.
In the past, I would have just used .toggle() and created two sets of functions. Any recommendations?
Thank you for your help.