I just noticed this. I am using jquery 1.10.0.min and jquery-ui.min 1.9.2
During normal entry of date field, my datepicker shows up, but if i have a validation error on any other fields, and once the validation error corrected, i am not able to get the datepicker pop up, and i have to manually type in the date. Very strange.
My jquery code for date-picker:
$(function() {
$(".datepicker").datepicker({
changeMonth: true,
changeYear: true,
yearRange: '2000:2050'
});
});
My view :
<td>
@Html.TextBoxFor(model => model.POP_Start, "{0:M/dd/yyyy}", new { @class = "form-control prdetailscustomtextbox datepicker", @autocomplete = "off" })
@Html.ValidationMessageFor(model => model.POP_Start, "", new { @class = "text-danger" })
</td>
Any pointer in fixing this issue is greatly appreciated.
TIA