Frage

I am using the Jquery Countdown Plugin and would like to only countdown in seconds and add the total time in seconds.

For example, when my countdown is 10 minutes, instead of showing 9 minutes 59 seconds and counting, it would show 599 seconds and counting. Is this possible? Thanks

War es hilfreich?

Lösung

$('#yourElement').countdown({
    until: someTime,
    format: 'S' // <-- the magic is happening here
});

The relevant documentation is found here (Tab: Formats 2, 4th example)

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top