I'm working on a countdown right now. The goal is to display multiple countdowns on a page. One countdown with an interval() is not a problem, but when it gets to two or more countdowns it will only display the last countdown.
Countdown structure:
- Grab the unix timestamp from
<div value"..."> <div> - Turn unix timestamp with jQuery to a nice countdown.
- Display all countdowns on the page with
.html()or.text()
Hope you can help me out.
valueattribute on a<div>element like that... Use at least an hidden input no ? Or adata-attribute