1
I have been for some time searching the jquery documentation for a function with the following behavior
Suppose we have two buttons on the screen each with a different click event:
<button>Effetc1</button>
<button>Effetc2</button>
<div> Click in first button to change</div>
The first triggers an animation, the second launches an alert. I want the second button event to wait until the completion of the first.
However are two separate events, so can not overlap callbacks, I want that during the execution of the first event, no other event run until the completion of the first. Example below