jQuery.ptTimeSelect 时间控件

简介: jQuery.ptTimeSelect http://pttimeselect.sourceforge.net/example/index.html Documentation Installation There are two files (.

jQuery.ptTimeSelect

http://pttimeselect.sourceforge.net/example/index.html

Documentation

Installation

There are two files (.css and .js) delivered with this plugin and that must be incluced in your html page after the jquery.js library, and prior to making any attempts at using it.  Both of these are to be included inside of the ‘head’ element of the document.

Usage

$(ele).ptTimeSelect()

Attaches a ptTimeSelect widget to each matched element.  Matched elements must be input fields that accept a values (input field).  Each element, when focused upon, will display a time selection popoup where the user can define a time.

PARAMS

@param {OBJECT} opt (Optional) An object with the options for the time selection widget.

OPTIONS

containerClass String.  A class to be assocated with the popup widget.  (default: none)
containerWidth String.  Css width for the container.  (default: none)
hoursLabel String.  Label for the Hours.  (default: Hours)
minutesLabel String.  Label for the Mintues.  (default: Minutes)
setButtonLabel String.  Label for the Set button.  (default: SET)
popupImage String.  The html element (ex. img or text) to be appended next to each input field and that will display the time select widget upon click.
zIndex Int.  Interger for the popup widget z-index.
onBeforeShow Function.  Function to be called before the widget is made visible to the user.  Function is passed 2 arguments: 1) the input field as a jquery object and 2) the popup widget as a jquery object.
onClose Function.  Function to be called after closing the popup widget.  Function is passed 1 argument: the input field as a jquery object.
onFocusDisplay Boolean.  True or False indicating if popup is auto displayed upon focus of the input field.  (default:true)

RETURNS

  • @return {object} jQuery

EXAMPLE

$('#fooTime').ptTimeSelect();

 

目录
相关文章
|
6月前
|
JavaScript
Jquery插件知识之Jquery.cookie实现页面传值
Jquery插件知识之Jquery.cookie实现页面传值
36 0
|
7月前
|
JavaScript
jQuery 插件自用列表
jQuery 插件自用列表
29 0
|
3月前
|
JavaScript
jQuery图片延迟加载插件jQuery.lazyload
jQuery图片延迟加载插件jQuery.lazyload
|
3月前
|
JavaScript 数据可视化 前端开发
jQuery-JS插件-第9次课-使用插件让领导对你刮目相看-附案例作业
jQuery-JS插件-第9次课-使用插件让领导对你刮目相看-附案例作业
19 0
|
3月前
|
JavaScript 前端开发
开发jQuery插件这些就够了
开发jQuery插件这些就够了
26 0
|
8月前
|
JavaScript
jQuery编写插件的两种方法
jQuery编写插件的两种方法
57 0
|
4月前
|
JavaScript 前端开发 安全
jQuery 第十一章(表单验证插件推荐)
jQuery 第十一章(表单验证插件推荐)
54 1
|
5月前
|
JavaScript
jQuery年月日(年龄)选择插件
jQuery年月日(年龄)选择插件
28 0
|
5月前
|
前端开发 JavaScript
Jquery前端分页插件pagination同步加载和异步加载
Jquery前端分页插件pagination同步加载和异步加载
43 0
|
5月前
|
JavaScript 前端开发 数据格式
Jquery前端分页插件pagination使用
Jquery前端分页插件pagination使用
62 1