File tree Expand file tree Collapse file tree 3 files changed +456
-0
lines changed
Expand file tree Collapse file tree 3 files changed +456
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="utf-8 ">
5+ < title > jQuery UI Datepicker - Select date and time as well</ title >
6+ < link rel ="stylesheet " href ="../../themes/base/jquery.ui.all.css ">
7+ < script src ="../../jquery-1.4.3.js "> </ script >
8+ < script src ="../../ui/jquery.ui.core.js "> </ script >
9+ < script src ="../../ui/jquery.ui.widget.js "> </ script >
10+ < script src ="../../ui/jquery.ui.datepicker.js "> </ script >
11+ < script src ="../../ui/jquery.ui.mouse.js "> </ script >
12+ < script src ="../../ui/jquery.ui.slider.js "> </ script >
13+ < script src ="../../ui/jquery.ui.datetimepicker.js "> </ script >
14+ < link rel ="stylesheet " href ="../demos.css ">
15+ < script >
16+ $ ( function ( ) {
17+ $ ( '#datepicker' ) . datepicker ( {
18+ duration : '' ,
19+ showTime : true ,
20+ constrainInput : false ,
21+ stepMinutes : 1 ,
22+ stepHours : 1 ,
23+ altTimeField : '' ,
24+ time24h : true
25+ } ) ;
26+ } ) ;
27+ </ script >
28+ </ head >
29+ < body >
30+
31+ < div class ="demo ">
32+ < p > Date: < input type ="text " id ="datepicker "> </ p >
33+ </ div > <!-- End demo -->
34+
35+
36+ < div class ="demo-description ">
37+ < p > Display the datepicker embedded in the page instead of in an overlay. Simply call .datepicker() on a div instead of an input.</ p >
38+ </ div > <!-- End demo-description -->
39+
40+ </ body >
41+ </ html >
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ <h4>Examples</h4>
1313 < li class ="demo-config-on "> < a href ="default.html "> Default functionality</ a > </ li >
1414 < li > < a href ="date-formats.html "> Format date</ a > </ li >
1515 < li > < a href ="min-max.html "> Restrict date range</ a > </ li >
16+ < li > < a href ="datetime.html "> Select date and time as well</ a > </ li >
1617 < li > < a href ="localization.html "> Localize calendar</ a > </ li >
1718 < li > < a href ="alt-field.html "> Populate alternate field</ a > </ li >
1819 < li > < a href ="inline.html "> Display inline</ a > </ li >
You can’t perform that action at this time.
0 commit comments