I have the following lines of html code in jquery mobile header to display time. It is static now as it refreshes only when page is refreshed. How I can periodically update the time without page refresh ?
<div id="updateTime">
<span>@DateTime.Now.ToShortDateString()</span><br />
@{
CultureInfo ci = new CultureInfo("en-US");
string formatedDate = DateTime.Now.ToString("t", ci);
}
</div>