Pregunta

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

¿Fue útil?

Solución

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

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top