How to reset and set new value to reverse countdownTimer in jQuery? -
html
<span id="hms_timer"></span> <button onclick="resetime()">reset time 3hr</button>
javasript
//default countdown start 2 hour $('#hms_timer').countdowntimer({ hours: 2, minutes: 0, seconds: 0, size: "lg" }); //onclick button reset previous countdown function resetime(){ $('#hms_timer').countdowntimer({ hours: 3, minutes: 0, seconds: 0, size: "lg" }); }
i have used ref link http://harshen.github.io/jquery-countdowntimer
here 2 hour has set default coutdown timer.but when click on button(timer set 3 hr) counter going fast because of old timeout.can me? in advance.
Comments
Post a Comment