Appointment Picker

A lightweight, accessible and customizable javascript timepicker.

Appointment-Picker source on Github

Default (jQuery)

var $picker = $('#time-1').appointmentPicker();

Large w/ options (jQuery)

var $picker2 = $('#time-2').appointmentPicker({
	title: 'Select an appointment',
	interval: 15,
	startTime: 10,
	endTime: 16,
	large: true
});

am/pm w/ options (vanilla-js)

var picker = new AppointmentPicker(document.getElementById('time-3'), {
	interval: 30,
	mode: '12h',
	minTime: 10,
	maxTime: 21,
	startTime: 09,
	endTime: 23,
	disabled: ['1:30 pm', '2:00 pm', '7:30 pm', '9:30 pm']
});

am/pm large w/ options (vanilla-js)

new AppointmentPicker(document.getElementById('time-4'), {
	interval: 30,
	mode: '12h',
	startTime: 10,
	endTime: 18,
	minTime: 11,
	maxTime: 18,
	disabled: ['4:30 pm', '5:00 pm'],
	large: true
});

More Examples

Tests

Report bugs or feature requests on Github Issues

Copyright Jan Suwart, MIT license