title: Refresh content on button click in Mvc through action method
body: <p>This is my controller.</p>
  
  <pre><code>public class HomeController : Controller
  {
      public ActionResult Index()
      {
          return Content(DateTime.Now.ToLongTimeString());
      }
  }
  </code></pre>
  
  <p>This is my view.</p>
  
  <pre><code>&lt;script src="../../Scripts/jquery-1.7.1.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      $("input").click(function () {
          $("#div1").load('@Url.Action("Index")');
      });
  &lt;/script&gt;
  &lt;div id="div1"&gt;&lt;/div&gt;
  &lt;input type="button" id="button1" value="Refresh"/&gt;
  </code></pre>
  
  <p>I need to refresh the current time after i run the project. But after running the project the button is not showing up. If i refresh the the page by F5 button, the time is getting refreshed. But i want to do it on button click. Please help. </p>