I have a form in which there are 2 jQuery datepickers, one for start date and a second one for end date. I want to add date range validation on them so client cannot select today's date and also future dates.
@{Html.BeginForm("ExportToExcel", "marketing", FormMethod.Get);}
<input type="hidden" value="@ViewBag.StartDate" name ="EXsd" />
<input type="hidden" value="@ViewBag.EndDate" name = "EXst" />
@{Html.EndForm();}
Can anyone please tell me how to write the JavaScript function to add date validation?