更新时间:2023-02-22 09:26:45
(document).ready(function(){
(#StartDate) .datepicker();
( #结束日期)日期选择器();
});
< / script >
@Html。 LabelFor(m => m.StartDate)
@Html .TextBoxFor(m => m.StartDate,new {style =width:200px; height:34px;,type =date})
以下是_layout.cshtml中添加的参考资料< script src = 〜/ obj / Scripts / jquery-1.7.1.js > < / script an> >
< script src = 〜/ obj / Scripts / jquery.ui.datepicker.js > < / script >
请求您帮助解决此问题。
问候
Santhosh
Hi All
Need your help on below.
I've below code in my view for datepicker which works perfectly in chrome but in IE nothing is loaded.
<script language="javascript" type="application/javascript">
$(document).ready(function () {
$("#StartDate").datepicker();
$("#EndDate").datepicker();
});
</script>
Below are the references added in _layout.cshtml
<script src="~/obj/Scripts/jquery-1.7.1.js"></script>
<script src="~/obj/Scripts/jquery.ui.datepicker.js"></script>
Request your kind help in resolving this issue.
Regards
Santhosh
(document).ready(function () {
("#StartDate").datepicker();
("#EndDate").datepicker(); }); </script>
@Html.LabelFor(m => m.StartDate)
@Html.TextBoxFor(m => m.StartDate, new { style = "width:200px;height:34px;", type = "date" })
Below are the references added in _layout.cshtml<script src="~/obj/Scripts/jquery-1.7.1.js"></script> <script src="~/obj/Scripts/jquery.ui.datepicker.js"></script>
Request your kind help in resolving this issue.
Regards
Santhosh