0

链接提供

<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/

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

4

1 回答 1

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

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

        });

        {/literal}
    </script>

更正:

于 2012-12-31T07:35:59.610 回答