//Delay of showing the submit buttons in seconds. Set the delay that you want to use in your case. var timeInterval = 10; // Timer id var si; // Submit value var submitValue; // Timer count var count = timeInterval; function showDelay() { if (document.getElementById('submit') && submitValue) { if (count == 0) { enableSubmit(); } else { --count; document.getElementById('submit').disabled=true; document.getElementById('submit').value = submitValue+" (" + count + ")"; } } } function disableSubmit() { //Delay of showing the submit buttons in seconds. Set the delay that you want to use in your case. count = timeInterval; if (document.getElementById('submit')) { submitValue = document.getElementById('submit').value; if (typeof count == 'undefined' || parseInt(count) <= 0) { count = timeInterval } showDelay(); si = setInterval(function() {showDelay();}, 1000); } } function enableSubmit() { if (document.getElementById('submit') && submitValue) { clearInterval(si); document.getElementById('submit').disabled=false; document.getElementById('submit').value = submitValue; } }