Bear with my crappy JS skills, but I'm trying to get a page to update with moment.js so it continually shows the seconds count.
I have this:
function update_time(){
var now = moment().format('h:mm:ss a');
$('.timer').append(now);
setTimeout(update_time, 1000);
})();
Yet I'm not sure how to get it to work correctly. I'm pretty sure I'm not closing something correctly, or even if I have the function formatting correctly.