$ (Document) .ready ( function () { the setInterval ( function () { var StartTimeText = new new a Date () the getTime (); // current time. var djstime = $ ( "EndTimeText.") HTML () 1000 * -. StartTimeText; // end time minus the current time var hours = the parseInt ((djstime% (1000 * 60 * 60 * 24)) / (60 * 1000 * 60 )); var minutes = the parseInt ((djstime% (1000 * 60 60 *)) / (1000 * 60 )); var seconds The = (djstime% (1000 * 60)) / 1000 ; hours = hours <10 ( '0' +? hours): hours; minutes= minutes < 10 ? ('0' + minutes) : minutes; seconds = seconds < 10 && seconds >= 1 ? ('0' + seconds) : seconds; $(".TimeText").html('<bdi>' + hours + '</bdi>:<bdi>' + minutes + '</bdi>:<bdi>' + parseInt(seconds) + '</bdi>'); },500); });