本文介绍了时间选择器,.selector不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了时间选择器代码来自

http://www.jqueryscript.net/time-clock/Easy-Time-Selector-with-jQuery-jQuery-UI-timeselect.html



I have used time picker code from the
http://www.jqueryscript.net/time-clock/Easy-Time-Selector-with-jQuery-jQuery-UI-timeselect.html

<link rel="stylesheet" type="text/css" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/flick/jquery-ui.min.css" /> 
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.min.js"></script> 

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script> 

<script type="text/javascript" src="~/Scripts/date-en-US.js"></script> 
<script type="text/javascript" src="~/Scripts/jquery.ui.timeselect.js"></script>

 <script type="text/javascript">
     $(document).ready(function(){
         $('#<%=txtTimePicker.ClientID%>').timeselect({ 
             autocompleteSettings: 
                 { 
                    autoFocus: true 
                    }
         }
                );
     });
<script>

<asp:TextBox ID="txtTimePicker" runat="server" /> 





我收到以下错误:

0x800a01b6 - JavaScript运行时错误:对象不支持属性或方法'timeselect'。请帮帮我..



I am getting the following error:
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'timeselect'. Please help me..

推荐答案






我收到以下错误:

0x800a01b6 - JavaScript运行时错误:对象不支持属性或方法'timeselect'。请帮帮我..



I am getting the following error:
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'timeselect'. Please help me..



这篇关于时间选择器,.selector不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 17:28