-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
25 lines (21 loc) · 875 Bytes
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html>
<head>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/jquery-ui.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script src="monthDatepicker.js"></script>
</head>
<body>
<label for="startDate">Month :</label>
<input name="startDate" id="startDate" class="date-picker month-only" />
<br />
<label for="startDate2">Regular Date :</label>
<input name="startDate2" id="startDate2" class="regularDatePicker" />
<script type="text/javascript">
$(function() {
$('.date-picker.month-only').monthDatepicker( { onClose: function(dateText, inst) { alert($(this).datepicker("getDate")); } });
$('.regularDatePicker').datepicker();
});
</script>
</body>
</html>