來源

使用方式

<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     是否出現年份下拉式選單

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

Posted by james670818 at 痞客邦 PIXNET 留言(2) 引用(0) 人氣()


open trackbacks list Trackbacks (0)

留言列表 (2)

Post Comment
  • Aberhard
  • 最豐滿最好之稻穗,便最貼近地面
  • fripig
  • datepicker很好用啊~~~~

You haven’t logged in yet, please use guest status to leave message. You can also log in with above service account and leave message

other options