close

來源

使用方式

<head>
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="js/ui/jquery-ui-1.8rc3.custom.min.js"></script>
<style type="text/css">@import url(js/ui/jquery-ui-1.8rc3.custom.css);</style>
</head>

jQuery(function($){   $('#date1').datepicker({dateFormat: 'yy/mm/dd',changeMonth: true,changeYear: true}); });

Datepicker.png 

dateFormat: 'yy/mm/dd     顯示在文字方塊的日期格式

changeMonth: true    是否出現月份下拉式選單

changeYear: true     是否出現年份下拉式選單

如果還需要更詳細的功能 官方網站還有更詳細的資料

arrow
arrow
    全站熱搜

    James Wu 發表在 痞客邦 留言(2) 人氣()