aspdotnet-suresh offers articles and tutorials,csharp dot net, articles and tutorials,VB.NET Articles,Gridview articles,code examples of 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

jQuery Display Current Time on Webpage using

Oct 14, 2012

Here I will explain how to show or display current time on webpage or website in

In previous articles I explained Get Current Datetime,
Auto refresh page , Expand textbox on focus ,Disable right click on image and many articles relating to JQuery. Now I will explain how to show or display current time on webpage using jQuery.

To display current time on website or webpage using jQuery we need to write the following code

<html xmlns="">
<head runat="server">
<title>jQuery display current time on webpage</title>
<script type="text/javascript" src="">
<script type="text/javascript">
$(document).ready(function() {
function ShowTime() {
var dt = new Date();
document.getElementById("lblTime").innerHTML = dt.toLocaleTimeString();
window.setTimeout("ShowTime()", 1000); // Here 1000(milliseconds) means one 1 Sec  
<body >
<form id="form1" runat="server">
jQuery Display time second by second.
<label id="lblTime" style=" font-weight:bold"></label>
Live Demo

jQuery Display time second by second.

If you enjoyed this post, please support the blog below. It's FREE!

Get the latest,, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email

Other Related Posts

© 2015 All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.