I want to update the time shown on the records li or divs on a page. I have put the time of creation of this record in a hidden field with each record.
example:
# Hi what are you doing?
5 minute ago. <hidden id='1' value='1345888475'>
# Akon song is good
10 minute ago <hidden id='2' value='1345888855'>
# I love the way you lie
15 minute ago <hidden id='3' value='1345889995'>
How can I update that time each minute? So after one minute the first div should say 6 minute ago and second would say 11 minute ago?
Is that possible using JS. I dont want to go php for this. Just using JS.
Time in DB is stored like strtotime(date("Y-m-d H:i:s"))
Thank you!