Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A time picker control for textfields built using jQuery. Inspired by Google Calendar.
JavaScript
branch: develop

This branch is 12 commits ahead of perifer:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
VERSION
package.json
timepicker.css
timepicker.js

README.md

timePicker

An ender time picker based on https://github.com/perifer/timePicker

Dependency: The Jeesh

If you're already using ender, you can add it to your existing instance :

$ ender add calender

Simple usage:

<link rel="stylesheet" type="text/css" href="timepicker.css">
<script src="http://ender-js.s3.amazonaws.com/jeesh.min.js"></script>
<script src="timepicker.js"></script>
<script>
  $("#time1").timepicker();
</script>

Add options:

02.00 AM - 03.30 PM, 15 minutes steps:

$("#time").timePicker({
  startTime: new Date(0, 0, 0, 2, 00, 0),
  endTime: new Date(0, 0, 0, 15, 30, 0),
  show24Hours: false,
  step: 15});

startTime and endTime can also be string :

$("#time2").timePicker({
  startTime: "2:00",
  endTime: "15:30",
  separator: ':', // needs to provide correct seperator
  show24Hours: false,
  step: 15});
Something went wrong with that request. Please try again.