hey i have acountdown timer in my app and i want that when i press a button (named "btn_respond") within the appery app builder, that it stops the timer could some one please help me with this ? thanks in advance
oh by the way , it is set that when i click/press one button it starts to countdown until "0" fine, but i would like to press another button to stop it before it reaches "0"
here is the code that i have so far :
var count=10;
var counter=setInterval(timer, 1000); //1000 will run it every 1 second
function timer()
{
Appery("countdown").text(count);
count=count-1;
if (count ).show();
}
}