简体   繁体   English

为什么日期选择器不起作用?

[英]why is datepicker not working?

following http://www.asp.net/ajaxlibrary/jquery_ui_mvc_datepicker.ashx Using Asp.Net MVC can someone please help me as to why my datepicker is not working. 以下http://www.asp.net/ajaxlibrary/jquery_ui_mvc_datepicker.ashx使用Asp.Net MVC可以帮助我有关为什么我的日期选择器不起作用的问题。 Nothing happens when I click the text box. 单击文本框没有任何反应。 Where the datepicker should appear? 日期选择器应出现在哪里?

    <input type="text" id="simple-date" />  

 <script type="text/javascript" language="javascript">
    // the jQuery ready shortcut  
    $(function () {  
        // set up our datepicker  
        $("#simple-date").datepicker();
    });
    </script>

If jQuery, jQueryUI links are added than try change script as follows: 如果是jQuery,则添加jQueryUI链接,然后尝试按如下所示更改脚本:

<script>
$(document).ready(function () {
        $("#simple-date").datepicker();
    });
</script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM