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.
<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 |
- jQuery