Skip to content
This repository has been archived by the owner on Aug 15, 2020. It is now read-only.
/ timepicker Public archive

Simple helper for input fields with an hour:minute selector. Up and down keys to scroll through the hours and minutes

Notifications You must be signed in to change notification settings

Tessmore/timepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

timepicker

Simple plugin for input fields to quickly select a time in hour:minute style. With the up and down keys the user can scroll through the hours. If the shift key is enabled, the minutes are adjusted.

Usage

<input name="time">

<script src="timepicker.js "></script>
<script>
  var args = { .. custom arguments, see below .. };
  $('input[name="time"').timepicker(args);
</script>
Argument Default value Description
time '08:00' The default time the input value should have
minStep 15 The amount of added minutes when the up key is pressed (or vice-versa)
start 0 The start of the days hour range (ie 00:00 - 23:00)
end 23 The end of the hour range

Dependencies

  • jQuery

About

Simple helper for input fields with an hour:minute selector. Up and down keys to scroll through the hours and minutes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published