Thursday 14 November 2013

jQuery Datepicker

<html lang="en">
<head>
<meta charset="utf-8" />
<title>jQuery UI Datepicker</title>

<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

<script>
$(function() {
$( "#datepicker" ).datepicker({
changeMonth: true,
changeYear: true
});
});
</script>

<style type="text/css">
div.ui-datepicker{
 font-size:10px;
}
</style>

</head>
<body>

<p>Date: <input type="text" id="datepicker" /></p>


</body>
</html>