Jquery – How can I make one JavaScript event wait for another to trigger?
I am trying to link two JavaScript/jQuery events for two buttons. When one button is pressed, I want it wait for the second button to be clicked, then continue executing. Something like this: $("#button1").on("click", function() { // wait for button…