I'm new to Jquery and I want to change the 2000 while the code is running
var interval = setInterval(function() {
//do something
}, 2000);
Something like this:
var wait = 200;
var interval = setInterval(function() {
if(wait == 200)
{
wait = 100;
}
}, wait);
Is there a way of doing this?