Skip to content

How to Implementation Timeago with Jquery and PHP

  • by

Timeago is the most important functionality in social networking sites, it helps to updating timestamps automatically. In this post I am just presenting a simple tip to implement timeago in a better way with dynamic loading live data using Jquery and  PHP.

 

Why Live Query
LiveQuery utilizes the power of jQuery selectors by binding events or firing callbacks for matched elements auto-magically, even after the page has been loaded and the DOM updated.

Code
Contains javascipt code. $(this).timeago()– here this element is refers to timeago class selector of the anchor tag.

How to Implementation Timeago with Jquery and PHP

Leave a Reply

Your email address will not be published. Required fields are marked *