<script type="text/javascript">
$(function() {
var newYear = document.getElementById('HF');
alert('hehe' + newYear);
$('#countdown').countdown({ until: newYear, format: 'DHMS', layout:
'<div id="timer">' + '<hr />' +
'<div id="timer_days" class="timer_numbers">{dnn}</div>' +
'<div id="timer_hours" class="timer_numbers">{hnn}</div>' +
'<div id="timer_mins" class="timer_numbers">{mnn}</div>' +
'<div id="timer_seconds" class="timer_numbers">{snn}</div>' +
'<div id="timer_labels">' +
'<div id="timer_days_label" class="timer_labels">days</div>' +
'<div id="timer_hours_label" class="timer_labels">hours</div>' +
'<div id="timer_mins_label" class="timer_labels">mins</div>' +
'<div id="timer_seconds_label" class="timer_labels">secs</div>' +
'</div>' +
'</div>'
});
});
</script>
How can i use this script many times on the page???I have three listViews ont the page so i want to use it 3 times??how can i do that??
You could have a countdown
classinstead of anid, so you could use the$(".countdown")selector instead.