13
rated 0 times
[
17]
[
4]
/ answers: 1 / hits: 64976
/ 9 Years ago, thu, may 21, 2015, 12:00:00
How to make it work? pls help.
function first() {
setTimeout((function() {
$('#q').append('first <br>');
}), 1000);
}
function second() {
$('#q').append('second <br>');
}
function third() {
$('#q').append('third <br>');
}
$.when(first()).done(second()).done(third());
first() runs as last function, i need as first
Fiddle here: JSFIDDLE
More From » jquery