I want a div reloads its time showed every 5 seconds.
JQUERY This is an approach...
time_showed1=$.now();//how to format in segs, then mins, then hours..
setInterval(function() { time_showed=time_showed1;}, 5000);
("#container").append("updated at:"+time_showed+" time");
HTML
<div id="container"></div>
I tried this as well but nothing
myFunction = function() {
time_showed=$.now();
};
setInterval(myFunction(), 2000);