hilios/jQuery.countdown

Having trouble using woth foreach loop in php

YAseerALy opened this issue · 1 comments

Each iworking fine with html code..but when uses same class in php loop never get it to work

<script type="text/javascript"> $('.d24').each(function(){ var timee = $(this).val(); $(this).countdown(timee, function(event) { $(this).val(event.strftime('%w weeks %d days %H:%M:%S')); }); }); </script>

use update.countdown method;

$('.d24').each(function(){

var timee = $(this).val();
$(this).countdown(timee).on('update.countdown', function(event) {
$(this).val(event.strftime('%w weeks %d days %H:%M:%S'));
});

});