簡體   English   中英

jQuery日期和時間選擇器

[英]jQuery Date and TimePicker

我正在嘗試使用位於的日期和時間選擇器

http://razum.si/jQuery-calendar/TimeCalendar.html

但是,僅當不包括jquery-ui.js時,此選擇器才有效。 看起來與基本的jquery-ui.js沖突。

jQuery核心api是必需的。

任何見解都會有所幫助。

提前致謝。

該代碼是

     <script type="text/javascript" src="jquery.js"></script> 
    <script type="text/javascript" src="jquery-calendar.js"></script> 
    <link rel="stylesheet" type="text/css" href="jquery-calendar.css" /> 
    <link rel="stylesheet" type="text/css"  href="styles.css" /> 
    <script type="text/javascript"> 
    //<![CDATA[
        $(document).ready(function (){ 
            $("#calendar1").calendar();

        });
    //]]>
    </script> 

而使彈出窗口專注於輸入字段的代碼是

 <input type="text" id="calendar1" class="calendarFocus"/>

通過查看頁面的源代碼可以看到腳本,上面提供了鏈接。 (我無法在此處發布更多鏈接,因為堆棧溢出不允許這樣做)。

我對這個插件不熟悉。 但是我通過將腳本調用放在UI調用之后,用Pengoworks重寫了jQuery UI的自動完成功能:

<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.7.3.custom.min.js"></script>
<script type="text/javascript" src="/js/jquery.autocomplete.js"></script>

不看代碼很難說,

但是,如果您在此日期選擇器上仍然遇到問題。.我一直使用此工具 ,真的很簡單,而且看起來也很棒。

您可以嘗試僅使用所需模塊下載jquery UI。 (因此沒有日期選擇器)。

我不確定你是什么意思。 您在頁面中使用jQuery,並且想要使用razum timecalender,但是那與jQuery沖突嗎?

也許使用jQuery UI版本? 可能更容易實現,因為您已經有了jQuery。 看這里

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM