But something is wrong,there was nothing happend.
I have added a JavaScript like this :
var wait = 60;
function time(o) {
if (wait == 0) {
o.removeAttribute("disabled");
o.value = "Get Code";
wait = 60;
} else {
o.setAttribute("disabled", true);
o.value = "Resend(" + wait + ")";
wait--;
setTimeout(function() {
time(o)
},
1000)
}
}
When in the Send Code Click button ,run javascript like this :
Appery('button_token').addClass('ui-disabled');
Appery('button_token').onclick=function(){time(this);}