<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>
<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时它不起作用。
答案 0 :(得分:1)
<script type="text/javascript">
{literal}
$(function(){
$( "#ds" ).datepicker({ dateFormat: "dd-mm-yy" });
});
{/literal}
</script>
校正: