Timepicker无法在网页中工作

时间:2012-10-31 11:22:40

标签: c# jquery asp.net jquery-ui timepicker

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>
你能帮助我吗?

2 个答案:

答案 0 :(得分:3)

你也可以使用:

$('[id*=tb_DelTime]').timepicker();

答案 1 :(得分:1)

要工作,您必须将呈现的ID设为:

$('#<%=tb_DelTime.ClientID%>').timepicker();