更新时间:2022-10-14 20:20:56
(#ResultTo)。val(dto);
(#ResultTo)。datepicker ({
changeMonth:true,
changeYear:true,
dateFormat:'mm / dd / yy',
showButtonPanel:false,
minDate:new Date(2014-12-1),
maxDate:1
});
Hi.
I got this problem in my datepicker. I can't seem to point on what is the problem.
I want to retrieve a report filtered by month-year. Month retrieves fine but I got a problem with the year.
It's ok with IE9 and chrome but did not work with IE11. But it turns to be fine when I open the Developer's Tool. Any idea on how to fix this?
below is my code.
HTML :
<div class="yrresultto" style="position:absolute; margin:44px 0 10px 391px;">
<label>To : </label>
<input type="hidden" id="def3" value= '<%:dateto.ToShortDateString() %>' />
<%:Html.TextBoxFor(m => m.ResultTo, new { @readonly = true })%>
<div style="padding-left:20px;">
<%:Html.ValidationMessageFor(m => m.ResultTo)%>
</div>
</div>
SCRIPT:
$("#ResultTo").val(dto);
$("#ResultTo").datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'mm/dd/yy',
showButtonPanel: false,
minDate: new Date("2014-12-1"),
maxDate: 1
});
("#ResultTo").val(dto);
("#ResultTo").datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'mm/dd/yy',
showButtonPanel: false,
minDate: new Date("2014-12-1"),
maxDate: 1
});