/
date.htm
82 lines (60 loc) · 2.06 KB
/
date.htm
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!doctype html>
<meta charset="utf-8">
<meta name="author" content="Amsul - http://amsul.ca">
<meta name="viewport" content="width=device-width">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<title>Pickadate.js</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="../../lib/themes/default.css">
<link rel="stylesheet" href="../../lib/themes/default.date.css">
<!--[if lt IE 9]>
<script>document.createElement('section')</script>
<style type="text/css">
.holder {
position: relative;
z-index: 10000;
}
.datepicker {
display: block;
}
</style>
<![endif]-->
<body>
<section class="holder holder-top holder-clean">
<form>
<fieldset>
<h3><label for="input_01">Pick a date. Go ahead...</label></h3>
<input
id="input_01"
class="datepicker"
name="date"
type="date"
autofocus
valuee="14-08-08"
data-valuee="2014-08-08">
<br><br><br><br><br>
<button type="button">Disable all dates</button>
<input class="button" type="submit" value="open">
</fieldset>
</form>
</section>
<script src="../jquery.1.7.0.js"></script>
<script src="../../lib/picker.js"></script>
<script src="../../lib/picker.date.js"></script>
<script src="../../lib/legacy.js"></script>
<script type="text/javascript">
var $input = $( '.datepicker' ).pickadate({
// format: 'yy-mm-dd',
// formatSubmit: 'yyyy-mm-dd',
// hiddenName: true,
selectYears: true,
selectMonths: true
})
var picker = $input.pickadate('picker')
// $('button').on('click', function() {
// picker.set('disable', true);
// });
</script>
</body>