jquery datepicker不适合smarty

时间:2012-12-19 10:06:33

标签: php jquery 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/

注意:-it在localhost上工作正常,但是当我在pixaria(www.pixaria.com)中使用smarty时它不起作用。

1 个答案:

答案 0 :(得分:1)

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

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

        });

        {/literal}
    </script>

校正: