call request every 5 sec code example Example: jquery call function every second setInterval(function(){ //this code runs every second }, 1000);