步驟一:加上 jQuery 套件到 head 跟 /head 之間
<script type="text/javascript" src="jquery.js"></script>
<!--
或者是
-->
<script src="http://code.jquery.com/jquery-latest.js"></script>
步驟二:加上 ui.datepicker.css 跟 ui.datepicker.js jQuery UI Date Picker CSS and the jQuery UI Date Picker Javascript
<style type="text/css">@import url(ui.datepicker.css);</style>
<script type="text/javascript" src="ui.datepicker.js"></script>
步驟三:基本方法:
最基本的語法 (mm/dd/yyyy).
jQuery(function($){
$('#example1').datepicker();
});
Reference:
http://marcgrabanski.com/code/ui-datepicker/core/ui.datepicker.css
http://marcgrabanski.com/code/ui-datepicker/core/ui.datepicker.js
http://docs.jquery.com/UI/Datepicker
<script type="text/javascript" src="jquery.js"></script>
<!--
或者是
-->
<script src="http://code.jquery.com/jquery-latest.js"></script>
步驟二:加上 ui.datepicker.css 跟 ui.datepicker.js jQuery UI Date Picker CSS and the jQuery UI Date Picker Javascript
<style type="text/css">@import url(ui.datepicker.css);</style>
<script type="text/javascript" src="ui.datepicker.js"></script>
步驟三:基本方法:
最基本的語法 (mm/dd/yyyy).
jQuery(function($){
$('#example1').datepicker();
});
Reference:
http://marcgrabanski.com/code/ui-datepicker/core/ui.datepicker.css
http://marcgrabanski.com/code/ui-datepicker/core/ui.datepicker.js
http://docs.jquery.com/UI/Datepicker