<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker - Default functionality</title>
<link rel="stylesheet" href="themes/base/jquery.ui.all.css">
<script src="jquery-1.8.3.min.js"></script>
<script src="jquery.ui.core.js"></script>
<script src="jquery.ui.widget.js"></script>
<script src="jquery.ui.datepicker.js"></script>
<script src="jquery.ui.datepicker-zh-TW.js"></script>
<script>
$(function() {
$.datepicker.setDefaults( $.datepicker.regional["zh-TW"] );
$( "#datepicker" ).datepicker({
dateFormat: 'yy/mm/dd',
changeYear: true,
minDate: 0
});
});
</script>
</head>
<body>
<p>Date: <input type="text" id="datepicker"></p>
</body>
</html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker - Default functionality</title>
<link rel="stylesheet" href="themes/base/jquery.ui.all.css">
<script src="jquery-1.8.3.min.js"></script>
<script src="jquery.ui.core.js"></script>
<script src="jquery.ui.widget.js"></script>
<script src="jquery.ui.datepicker.js"></script>
<script src="jquery.ui.datepicker-zh-TW.js"></script>
<script>
$(function() {
$.datepicker.setDefaults( $.datepicker.regional["zh-TW"] );
$( "#datepicker" ).datepicker({
dateFormat: 'yy/mm/dd',
changeYear: true,
minDate: 0
});
});
</script>
</head>
<body>
<p>Date: <input type="text" id="datepicker"></p>
</body>
</html>