Skip to content

A simple attachment for HTML input fields that lets the user choose from a list of predefined "times". Similar to how a date field may have a calendar attachment.

Notifications You must be signed in to change notification settings

syko/jquery-simpletimepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Introduction

This is a simple "attachment" for html input fields for inputting times without the keyboard.
Similar to how you would attach a calendar to a date input, you can attach this to a time input.
See snapshot of demo:
Example snapshot

Installation

Just copy jquery.simpletimepicker.js or jquery.simpletimepicker.js to somewhere meaningful and include it in your html.

Usage

Simple version:

$('#yourinput[type=text]').simpleTimePicker();

Full version:

$('#yourinput[type=text]').simpleTimePicker({
    show_on: '.clock-attachment', /* The adjacent button that opens this */
    distance_left: 28, /* the distance from the input */
    start_time: '10:00',
    end_time: '16:00',
    interval: 30 /* In minutes */
});

About

A simple attachment for HTML input fields that lets the user choose from a list of predefined "times". Similar to how a date field may have a calendar attachment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published