jquery - I have a setTimeout function and bug in my code -


i trying code giving me error , error not clear. please me error in code.

$("#sess").click(function(){      if(s == 0){    var temp = sl;    while(sl != 0){       if(temp == sl){        settimeout(function(){          temp = sl--;        }, 100);       }       $("#time").html(sl);            //s=1;     }   }); } 

looks have syntax error, moved ); code. try this:

$("#sess").click(function(){      if(s == 0){    var temp = sl;    while(sl != 0){       if(temp == sl){        settimeout(function(){          temp = sl--;        }, 100);       }       $("#time").html(sl);            //s=1;     }   } }); 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -