I am developing a web based application with MVC razor and i'm using Jquery datepicker a couple date field now datepicker load and open correctly but not change date value.i'm calling a partial view for edit using by jquery dialog.Actually if i make edit operation inside page(using query dialog use without partial view), everything is normally.
EditDate.cshtml
<script type="text/javascript">
$(function () {
$(".datepicker").datepicker({
dateFormat: 'dd.mm.yy',
changeMonth: true,
changeYear: true,
yearRange: "-100:+0"
});
});
</script>
@using (Html.BeginForm("EditDate", "Home"))
{
@Html.HiddenFor(m => m.Id)
@Html.TextBoxFor(m => m.Date, new { @class = "datepicker" })
<button>Update</button>
}