Project

General

Profile

Defect #17625 » jquery.html

Toshi MARUYAMA, 2014-08-07 13:36

 
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker - Show week of the year</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
<!--
<script src="http://www.redmine.org/javascripts/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js" type="text/javascript"></script>
-->
<link rel="stylesheet" href="http://code.jquery.com/resources/demos/style.css">
<script>
$(function() {
$( "#datepicker" ).datepicker({
dateFormat: 'yy-mm-dd',
showWeek: true,
// firstDay: 1,
firstDay: 0,
selectOtherMonths: true, changeMonth: true, changeYear: true,
showOtherMonths: true,
showButtonPanel: true
});
});
</script>
</head>
<body>
<p>Date: <input type="text" id="datepicker"></p>
</body>
</html>
(2-2/2)