How should I remove these <li> elements based on time?
<p>I have 5 <code>&lt;li&gt;</code> elements on page load. </p>

<p>Other <code>&lt;li&gt;</code> elements are added randomly at every number of seconds. I need to remove the <code>&lt;li&gt;</code> elements that have been on the page longer than a minute. </p>

<p>I was thinking of having an attribute called <code>data-created-at</code> which stores the time it was added. And then have a looped function (via js, in the same page) that checks for <code>&lt;li&gt;</code> elements to be removed.</p>

<p>If above is a sound approach. Should I store the time for <code>data-created-at</code> in milliseconds?</p>

<p>Good idea? Or is there a better way to go about this? +1 for anyone who gives a code snippet along with their description.</p>
