jquery - Perform action in series -
i trying perform action in series here in code alert message printed firat though have written after action.
this fiddle have tried . http://jsfiddle.net/wggua/635/
$(document).ready(function() { var a=1; settimeout(function() { $('#dvdata').fadeout(); }, 2000); if(a==1) { alert("value s 1"); } else { alert("value 0"); } });
please help,
your code says:
"run fade out function in 2 seconds. alert something."
if want alert appear after fade out function runs, need put code inside function runs in 2 seconds too.
Comments
Post a Comment