Hi i need help with website where using time button.
Always after visit this page i must wait 20 seconds for using this button
Cai get help with disable this timer .when i try delete source in button code :
disabled= i can press button but after time change, disabled button renew and i can press.
Can get some help with script who change countdown var time to 1 ? thanks for help
<script type="text/javascript">$(document).ready(function(){var countdown=20;var $vote=$('#vote');function doVote(){if(countdown>0){$vote.val('Please wait '+countdown).prop('disabled',true);window.setTimeout(function(){doVote();},1000);countdown--;}else{$vote.val('Confirm Vote').prop('disabled',false);}}doVote();});</script>
button
<input class="btn btn-theme" type="submit" value="Please wait 20" id="vote" disabled="">