If and when you want to do something first and then do something else, how can you write it with jQuery?
As you know, using the “when and done” method(.when().done()) or the “then” method(.then()), you can express it as follows:
I imagined that doing something after clicking a button with a work doing something else. I mean:
Actually, “Something” is done before doing “SomethingElse” if and when you write properly the programme above.
The “click” method means “getting ready” to do something. In other words, $.when is not when doing “Something” but when being ready to click a button.
I do not know how I can realise my fancy above. Besides, what I really want to do is that the order to click some buttons is meaningful.