html:
<a><span id="sendAgain" onclick="sendEmail()">2. Send activation email again</span></a>
(Span controls click event, disabled is invalid)
js:
/*Send email*/function sendEmail(){//Send email authentication email var me = $("#sendAgain"); me.time = 60; (function() { if (me.time > 1) { me.time--; me.html("2. Send again again requires (" + me.time + ")"); setTimeout(arguments.callee, 1000); me.attr("onclick",""); } else { me.html("2. Send activation email again"); me.attr("onclick","sendEmail()"); } })();}The simple implementation of the above javascript display countdown control button is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.