Easy Touch Time Picker Plugin | clocklet

Clocklet is a simple, configurable, and easy-to-touch plugin written in pure JavaScript. The timepicker plugin enables the user to specify a time in hours and minutes from a clock-style popup when activated.

jquery timepicker plugin, time picker javascript code, time picker jquery, jquery clock time picker, time picker jquery ui, 24 hour time picker javascript

Simple Multi Countdown Timer Plugin Using Javascript/JQuery

How to make use of it:

Import the clock let plugin’s JavaScript and Stylesheet into the HTML doc.

<link rel="stylesheet" href="clocklet.css"><style>
<script src="clocklet.js"></script>

To initialize the clock time picker automatically, simply add the data-clocklet attribute to an input field as this:

<input data-clocklet maxlength="5" value="02:25">

To config, the clock time picker, move the next options to the data-clocklet attribute:

<input data-clocklet data-clocklet="format: _H:_m;" maxlength="5" value="02:25">
  className: '',
  format: 'HH:mm',
  placement: 'bottom', // or 'top'
  alignment: 'left', // or 'rignt'
  appendTo: 'body',
  zIndex: '',
  dispatchesInputEvents: true

Available event handlers:

<input class="event" data-clocklet maxlength="5" value="02:25">
var instance = document.querySelector('.event');

instance.addEventListener('clocklet.opening', function (event) {
  console.log(event.type, event.target.value, event.detail.options);
  if (document.querySelector('.clocklet-cancel-opening').checked) {

instance.addEventListener('clocklet.opened', function (event) {
  console.log(event.type, event.target.value, event.detail.options);

instance.addEventListener('clocklet.closing', function (event) {
  console.log(event.type, event.target.value);
  if (document.querySelector('.clocklet-cancel-closing').checked) {

instance.addEventListener('clocklet.closed', function (event) {
  console.log(event.type, event.target.value);

instance.addEventListener('input', function (event) {
  console.log(event.type, event.target.value, event.target.value);

API strategies.

// set options

// open the time picker
clocklet.open(inputElement[, options])

// close the time picker

// place the time picker into the containerElement
clocklet.inline(containerElement[, { input, format }])

Touch-friendly Clock Time Picker, clocklet Plugin/Github, time picker javascript source code

See Demo And Download

Official Website(luncheon): Click Here

This superior jQuery/javascript plugin is developed by luncheon. For extra Advanced Usages, please go to the official website.

Related Posts


Adding Zoom-on-Wheel and Pan-on-Drag to Inline SVG Elements

Vanilla-js module for adding zoom and panning behavior when dragging to SVG embedded elements. A lightweight Vanilla JavaScript plugin that enables zoom and pan functions on an…


Sorting HTML Table Vanilla JavaScript Library | Sortable.js

Sortable – Small JS vanilla table sorter makes any table with class = “sortable“, er, sortable. That is, the user can click the table header and change…


WYSIWYG Rich Text Editor With jQuery And FontAwesome | RichText

RichText jQuery implementation for WYSIWYG Rich Text Editor which uses Font Awesome Iconic Font for editor icons. It is licensed under AGPL-3.0. Initialize editor Simply call .richText() on your jQuery(‘textarea’) or jQuery(‘input’)…


[Autocomplete] Email Domain Suggestions Like Gmail, Outlook, or More | email-genie

Email Genie allows auto-completion in the email field by providing a list of domain suggestions (gmail.com, outlook.com, etc.). This package is lightweight, flexible, compatible with libraries (jQuery,…


[Generator] JavaScript Library for Creating Squircley Magic ✨ | squircley.js

squircley.js is the core magic of Squirclular ✨ from https://squircley.app wrapped in a simple 0-dependency JavaScript library. squircley.js can generate SVG files, add square backgrounds to DOM…