I have multiple dropdown boxes which drop when their link is clicked. The boxes have the possibility to overlap if they are open at the same time.
Is it faster to qu
You could use .toggle() function for this too.
var $box1 = $('#box1'), $box2 = $('#box2'); $('.majorDiv').on('click', '#box1-link', function(e){ var $this = $(this); e.preventDefault(); $box1.fadeToggle(); $box2.slideDown(200, function(){ //do stuff here }); });