0 to 100 counter in jquery
HTML <button id="update" type="button">Button</button> <div id="counter">1</div> CSS #counter{ width:200px; height:200px; border:8px solid red; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:80px; font-family:roboto; font-weight:bold; color:red; } ADD JQUERY CDN File & is custom file $(document).ready(function(){ $("#update").click(function() { var count = 0; var interval = setInterval(function() { if( count == 99 ) clearInterval(interval); count++; $('#counter').html( count); },300); }); });