<div data-countdown="2016/01/01"></div>
<div data-countdown="2017/01/01"></div>
<div data-countdown="2018/01/01"></div>
<div data-countdown="2019/01/01"></div>
$('[data-countdown]').each(function() {
var $this = $(this), finalDate = $(this).data('countdown');
$this.countdown(finalDate, function(event) {
$this.html(event.strftime('%D days %H:%M:%S'));
});
});
<div data-countdown="2021/01/01"></div>
<div data-countdown="2021/01/01"></div>
<div data-countdown="2021/01/01"></div>
<div data-countdown="2021/01/01"></div>
Code Example |
---|
Html :: html5 audio |
Html :: beautify html code in vscode |
Html :: tr , th , td , table |
Html :: color picker js |
Html :: html lang attribute |
Html :: mailto html multiple addresses |
Html :: multiple form submit for different form action |
Html :: select set selected value html |
Html :: html value attribute |
Html :: wright word with < in html p tag |
Html :: change fill color using javascript |
Html :: html input for email |
Html :: lightweight charts cdn |
Html :: html injection |
Html :: in html the color for red |
Html :: divs html |
Html :: react select, option |
Html :: remove extra whitespace in pre html |
Html :: how to make text appear at tope left in html |
Html :: common sample sql databases for practice |
Html :: anchor tag background image html |
Html :: html input attributes |
Html :: request html nodejs |
Html :: commento in html |
Html :: html line break |
Html :: aria label |
Html :: what is <tr in HTML |
Html :: table body element |
Html :: bootstrap nav tabs |
Html :: textarea self expandable height |