A jQuery plugin for adding time input support inspired by letsfreckle
Download the production version or the development version.
In your web page:
<script src="jquery.js"></script>
<script src="dist/jquery.timeInput.min.js"></script>
<input class="timeInput" />
<script>
jQuery(function($) {
$("input.timeInput").timeInput();
});
</script>
{
roundMinutesUpStep: 15
}
Minutes the input will be rounded on 15 minutes. Example: 0.10 --> 0:15
and 1:02 --> 1:15
{
onChange: function (value) { }
}
Callback that is called after the new value has been set, with the new value as argument.
| Version | Notes |
|---------+---------------------------------------------------------------------------|
| 0.1.3 | Added support for numpad input |
| 0.1.2 | Added the onChange callback |
| 0.1.1 | Added rounding minutes up to step option |
| 0.1.0 | Initial release |