var count = 0 var timer = null timer = setInterval(function () { count++; $(".pdf_tixing .time").html(count); }, 1000)