在IE中没有加载Datepicker - MVC 4,Razor [英] Datepicker not loading in IE - MVC 4, Razor
本文介绍了在IE中没有加载Datepicker - MVC 4,Razor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
在下面需要你的帮助。
我的代码在我下面查看datepicker,它在chrome中完美运行但在IE中没有任何内容被加载。
< ; script language < span class =code-keyword> = javascript 类型 = application / javascript >
$(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})
以下是_layout.cshtml中添加的参考资料
< script src = 〜/ obj / Scripts / jquery-1.7.1.js > < / script >
< script src = 〜/ obj / Scripts / jquery.ui.datepicker.js > < / script >
请求您帮助解决此问题。
问候
Santhosh
解决方案
(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 >
< 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>
@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
解决方案
(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
这篇关于在IE中没有加载Datepicker - MVC 4,Razor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文