2010-01-29 42 views

回答

3

我建議你使用jQueryUI的日期選擇器插件:

http://jqueryui.com/demos/datepicker/

下面是從jQuery UI的網站的例子:

<script type="text/javascript"> 
    $(function() { 
     $("#datepicker").datepicker(); 
    }); 
    </script> 

<div class="demo"> 
<p>Date: <input id="datepicker" type="text"></p> 
</div><!-- End demo --> 
<div style="display: none;" class="demo-description"> 
<p>The datepicker is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.</p> 
</div><!-- End demo-description --> 
+0

可以告訴我更多如何使用它,我覺得它很有趣... – user261596 2010-01-29 06:38:39

相關問題