problem with setInterval
problem with setInterval
here's my code I also tried text but in either case timestamp is displayed in the div with id time but not updated.
- $(document).ready(function() {
- var timestamp = jQuery.now();
- setInterval(function(){
- $('#time').html(timestamp);
- }, 1000);
- });