jQuery UI Datepicker with hour and minute
来源:互联网 发布:企业网站html源码 编辑:程序博客网 时间:2024/06/05 03:09
Adding a Timepicker to jQuery UI Datepicker
The timepicker addon adds a timepicker to jQuery UI Datepicker, thus the datepicker (jQueryUI) is required for using any of these. In addition all datepicker options are still available through the timepicker addon.
Back to Blog
Download
Download Timepicker Addon
Download Timepicker Addon Minified
There is a small bit of required CSS:
/* css for timepicker */#ui-timepicker-div dl{ text-align: left; }#ui-timepicker-div dl dt{ height: 25px; }#ui-timepicker-div dl dd{ margin: -25px 0 10px 65px; }
Donation
Has this Timepicker Addon been helpful to you?
Some Examples
Add a simple timepicker to jQuery UI's datepicker
$('#example1').datetimepicker();
Show time in AM/PM 12 hour format
$('#example2').datetimepicker({ampm: true});
Show only the time picker without date picker
$('#example3').timepicker();
Change the format (default is "hh:mm tt")
- h
- Hour with no leading 0
- hh
- Hour with leading 0
- m
- Minute with no leading 0
- mm
- Minute with no leading 0
- s
- Second with no leading 0
- ss
- Second with no leading 0
- t
- a or p for AM/PM
- tt
- A or P for AM/PM
- T
- am or pm for AM/PM
- TT
- AM or PM for AM/PM
$('#example4').datetimepicker({timeFormat: 'h-m'});
Show Seconds, Minutes, or Hours
- showHour
- Show the hour, default=true
- showMinute
- Show the minute, default=true
- showSecond
- Show the second, default=false
$('#example5').datetimepicker({showSecond: true,timeFormat: 'hh:mm:ss'});
Hours, Minutes, Seconds in steps
- stepHour
- hour steps, default=1
- stepMinute
- minute steps, default=1
- stepSecond
- second steps, default=1
$('#example6').datetimepicker({showSecond: true,timeFormat: 'hh:mm:ss',stepHour: 2,stepMinute: 10,stepSecond: 10});
Default Hours, Minutes, Seconds
- hour
- default=0
- minute
- default=0
- second
- default=0
$('#example7').datetimepicker({hour: 13,minute: 15});
Version
Version 0.5
Last updated on 6/16/2010
jQuery Timepicker Addon is currently available for use in all personal or commercial projects under both MIT and GPL licenses. This means that you can choose the license that best suits your project, and use it accordingly.
GPL License
MIT License
- jQuery UI Datepicker with hour and minute
- angular directive ngmodel with jquery ui datepicker
- JQuery UI - datepicker
- jquery ui datepicker使用
- Jquery UI datepicker 实用
- jquery ui datepicker详解
- jquery ui datepicker demo
- jquery ui datepicker
- JQuery UI Datepicker
- JQuery UI datepicker 使用方法
- jQuery UI datepicker
- jquery ui datepicker
- Get the Degree of Angle Between Hour and Minute Hand of a Clock at Anytime
- jQuery UI Datepicker中文显示
- jQuery UI Datepicker中文显示
- jQuery UI Datepicker中文显示
- 使用jQuery UI Datepicker 小结
- jQuery UI Datepicker中文显示
- php换行符
- Cent os中apahce设置多域名访问
- Inno Setup 网页显示插件 webctrl
- 数组和foreach循环 php语法
- Object not found!
- jQuery UI Datepicker with hour and minute
- Symbian:启动JAR文件安装
- 罕见的编码转换问题(请高手帮忙解决)
- 遍历文件夹下文件
- ipod 硬件检测
- Android开发中使用Eclipse创建工程后提示The project cannot be built until build path errors are resolved问题的解决方法
- 图片自动切换并改变链接代码
- SQL 中文排序方式
- 比较C#的静态常量(const)和动态常量(static和readonly)