0
局部视图我有文本框的局部视图jQuery的日期选择器不工作时,它是在Asp.net MVC
<input type="text" id="txtStartDate" />
,我还引用脚本文件
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.1/jquery-ui.js"></script>
$(document).ready(function() {
$(document).on("focus", "#txtStartDate", function() {
$(this).datepicker();
});
});
我已经试过作为普通的查看页面它正在工作,但是当设置是部分查看它不工作,是引用jquery datepicker脚本的这个问题?如果问题有任何解决方案,请帮助我。
它应该是类型=“文本”对不对? – 2014-09-19 09:17:57
对不起,这里输入的问题,但在我看来,文本框是模型类型。 – 2014-09-19 09:28:51
它不工作如何?你的'onfocus'回调被调用了吗? – 2014-09-19 09:58:46