<script type="text/javascript"> $(document).ready(function() { $("#time").countdown({ date: "<?php '.$data.' ?>", onChange: function( event, timer ){ /* Tips: event.target is DOM Element this is DOM element $(this) is jQuery Element timer is interval for countdown If a countdown should end early you could do: clearInterval( timer ); $(this).trigger('complete'); */ }, onComplete: function( event ){ $(this).html("Completed"); }, leadingZero: true }); }); </script> </head> <body> <div id="container"> <h1>Date Countdown jQuery Plugin</h1><br /> <?php $data = '2011-09-05 22:15:00'; ?> <p id="time" class="time"></p>
i mam pytanie jak mogę zrobic żeby w date: "<?php '.$data.' ?>", pokazywało tą date 2011-09-05 22:15:00