<div class="codetitle"> <span><a style="CURSOR: pointer" data="89770" class="copybut" id="copybut89770" onclick="doCopy('code89770')"><u>Copy code</u></a></span> The code is as follows:</div> <div class="codebody" id="code89770"> <br><head runat="server"><br> title></title><br> <script type="text/javascript" src="js/jquery-1.3.2.js"></script><br> <script type="text /javascript"><br> var timeout;<br> var count = 10; // Count down to ten times<br> $(function() {<br> timeout = setTimeout(BtnCount, 1000); // 1s execution Once BtnCount<br> btnSubmit').attr("disabled ", "");<br> $('#btnSubmit').val("OK");<br> clearTimeout(timeout); // Cancel the timeout set by the setTimeout() method<br> }<br> 1000);<br> > div><br> </form><br></body><br><br><br>setTimeout is only executed once by default, but we can use recursion to start itself.</div>