i want display countdown in html page, refreshing page should not restart countdown. can drop example?
use jquery.countdown.js
this can used as
function setcountdown () { $('#countdown').countdown({until: +59, format: 'yowdhms', layout: '{sn} {sl}', onexpiry: myfunction}); $('#countdown').removeclass ('is-countdown'); $('#countdownspan').show (); }
where html be
<span id="countdownspan"> <span id="countdown"></span>seconds remaining</span>
Comments
Post a Comment