0

Jquery 时间选择器在我的网页中不起作用。

http://fgelinas.com/code/timepicker/

我正在使用上面的 Timepicker。

<script src="Script/JQueryTimePicker/include/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="Script/JQueryTimePicker/include/jquery.ui.core.min.js" type="text/javascript"></script>
<script src="Script/JQueryTimePicker/include/jquery.ui.position.min.js" type="text/javascript"></script>
<script src="Script/JQueryTimePicker/include/jquery.ui.widget.min.js" type="text/javascript"></script>
<script src="Script/JQueryTimePicker/include/jquery.ui.tabs.min.js" type="text/javascript"></script>
<link href="Script/JQueryTimePicker/include/jquery-ui-1.8.14.custom.css" rel="stylesheet"
    type="text/css" />
<link href="Script/JQueryTimePicker/jquery.ui.timepicker.css" rel="stylesheet" type="text/css" />
<script src="Script/JQueryTimePicker/jquery.ui.timepicker.js" type="text/javascript"></script>


<script type="text/javascript">
    $(document).ready(function () {
        $('#tb_DelTime').timepicker();
    });
    </script>



<span class="span">
    <label class="Informlabel">
        Del Time :
    </label>
    &nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="tb_DelTime" runat="server" Width="60%"></asp:TextBox>
</span>

你能帮助我吗 ??

4

2 回答 2

3

你也可以使用:

$('[id*=tb_DelTime]').timepicker();
于 2012-10-31T11:35:31.210 回答
1

要工作,您必须将呈现的 id 获取为:

$('#<%=tb_DelTime.ClientID%>').timepicker();
于 2012-10-31T11:31:41.333 回答