abhishek singh

abhishek singh

  • NA
  • 160
  • 2.9k

How to use J query Datepicker in MVC 4 .

Apr 20 2017 5:28 AM
@model MvcTestAbhi.Models.Abhi
@{
ViewBag.Title = "INSERT";
}
<h2>INSERT</h2>
@using (Html.BeginForm("INSERT1", "MVC", FormMethod.Post))
{
<fieldset>
<legend>Registration Form</legend>
<ol>
<li>
@ViewBag.ApprovalNO
<table>
<tr>
<td>
@Html.LabelFor(a=>a.ApprovalNO)
</td>
<td>
@Html.TextBoxFor(x=>x.ApprovalNO)
</td>
</tr>
<tr>
<td>
@Html.LabelFor(a=>a.EstablishmentName)
</td>
<td>
@Html.TextBoxFor(x=>x.EstablishmentName)
</td>
</tr>
</table>
<table>
<tr>
<td>
@Html.LabelFor(a=>a.OfficeRegion)
</td>
<td>
@Html.TextBoxFor(x=>x.OfficeRegion)
</td>
</tr>
</table>
<table>
<tr>
<td>
@Html.LabelFor(a=>a.EstablishmetAddress)
</td>
<td>
@Html.TextBoxFor(x=>x.EstablishmetAddress)
</td>
</tr>
</table>
<table>
<tr>
<td>
@Html.LabelFor(a=>a.DateOfExpiry)
</td>
<td>
@Html.TextBoxFor(x=>x.DateOfExpiry)
</td>
</tr>
</table>
</li>
</ol>
<input type="submit" value="Register" />
@
</fieldset>
<a href="DisplayData">Display</a>
}
I want to use J query datpicker in DateOfExpiry Texbox. Please help me.

Answers (3)