2012-10-31 52 views
0

Jquery時間選擇器不工作在我的網頁。Timepicker不工作在網頁

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> 

你能幫幫我嗎?

+0

請發表您的HTML了。或者甚至更好,創建一個js小提琴 – kannix

+0

其工作正常與我..沒有probs ...考慮到你已經寫了這個相應的HTML – Sanket

+0

我已經發布了Html。 Datepicker也不在我的頁面中工作 –

回答

3

您還可以使用:

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

謝謝你。完美地工作 –

1

要工作,必須得到呈現ID爲:

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