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>
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>