簡體   English   中英

jQuery datepicker無法在smarty上運行

[英]jquery datepicker not working on smarty

鏈接提供

<link rel="stylesheet" href="http://localhost/assetbox/resources/themes/Charcoal/css/jquery-ui.css" />
<script type="text/javascript" src="http://localhost/assetbox/resources/javascript/jquery/jquery-1.8.3.js"></script>
<script type="text/javascript" src="http://localhost/assetbox/resources/javascript/jquery/jquery-ui.js"></script>

html標簽

<div class="box col-6 formfield">
<input type="text" maxlength="50" name="cal" value="" class="" id="datepicker" > 
        </div>

 <script type="text/javascript"> 
            {literal}

            jQuery(function($){
                $( "#datepicker" ).datepicker();

            });

            {/literal}
    </script>

我下載的鏈接: http://jqueryui.com/datepicker/ : http://jqueryui.com/datepicker/

注意:-它在localhost上工作正常,但是當我使用smarty在pixaria(www.pixaria.com)中使用時,它無效。

<script type="text/javascript"> 
        {literal}

        $(function(){
            $( "#ds" ).datepicker({ dateFormat: "dd-mm-yy" });

        });

        {/literal}
    </script>

更正:

暫無
暫無

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

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