$(function () { $.livestamp.interval(30*1000); $('#add').click(function (e) { $('#stamps').append('<p><span data-livestamp="' + Math.round(Date.now()/1000) + '"></span></p>'); $.livestamp.resume(); }); });
<p><button id='add'>add</button> a live time stamp in the following div. </p> <div id='stamps'></div>