Question

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

Was it helpful?

Solution

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top