Jquery delay between javascript functions
I have multiplied functions with simplified parameters like:
function f1(p1,p2){
alert('Function one is P1:'+p1+' P2:'+p2);
}
function f2(p1,p2){
alert('Function two is P1:'+p1+' P2:'+p2);
}
I need to run this sequence with a delay in between. However, I found that jQuery doesn't like working with parameters. I have tried the .click function.
$.delay(1000).click(f1('One',false)).delay(1000).click(f2('One',false));
But the delay makes it impossible for clicks to work ...
-1
source to share
4 answers