In this example, we will place the slideToggle()
(Combination of slideUp()
and slideDown()
)and alert()
statements next to each other. If you try this code the alert will be displayed immediately once you click the trigger button without waiting for slide toggle effect to complete.