I\'m creating a web app...
i got a kind of game, my idea is when the user completes each level appears a dialog box with some information, it is fine.
Now my
This will work
$("button").click( function() { console.log("clicked...waiting..."); setTimeout( function() { alert("Called after delay."); }, 5000); });