1$('[data-countdown]').each(function() {
2 var $this = $(this), finalDate = $(this).data('countdown');
3 $this.countdown(finalDate, function(event) {
4 $this.html(event.strftime('%D days %H:%M:%S'));
5 });
6});
1<div data-countdown="2016/01/01"></div>
2<div data-countdown="2017/01/01"></div>
3<div data-countdown="2018/01/01"></div>
4<div data-countdown="2019/01/01"></div>