jQuery TimePicker: Default Functionality

jqxTimePicker is a dialog picker is used to select a single time (hours:minutes) with suitable and interactive interface.

A live JavaScript/jQuery example of jqxTimePicker, the jQWidgets TimePicker component, with its complete source code below. It is one of 6 jqxTimePicker demos for jQuery.

jqxTimePicker API used in this demo

Source code

To run it in your own page, load jqx.base.css, a theme and the library files below from npm (npm install jqwidgets-scripts) or the jsDelivr CDN, then add the markup and the script. jQuery is not required: jqxcore.js provides $. Getting started with jqxTimePicker shows the setup step by step.

The page loads jqx.base.css, a theme and these library files: jqxcore.js, jqxdraw.js, jqxtimepicker.js.

It also loads helper scripts of this demo site, which are not part of the library: demos.js (getWidth() and other layout helpers).

script.js

$(document).ready(function ()
{
    $("#timepicker").jqxTimePicker({
        width: 400,
        height: 400
    });
});

body.html

<div id="timepicker"></div>

Learn more

More jQuery TimePicker demos