jQuery Countdown plugin countdown only seconds
-
01-07-2021 - |
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
La solution
$('#yourElement').countdown({
until: someTime,
format: 'S' // <-- the magic is happening here
});
The relevant documentation is found here (Tab: Formats 2, 4th example)
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow