This is a simple jquery, bootstrap & fontawesome based time picker plugin. I needed something simple and easy to use, and hence ended up writing this.
You can use it by downloading the repository as zip file.
to install it using bower do:
bower install ct_timepicker
- Include the
css/timepicker.cssin the head of your website. - Include the
js/timepicker.jsafter you have included the scripts forjqueryandbootstrap. - Assign the class
ct_timepickerto any of yourinputelements and the timepicker control will replace it. e.g.
<input type="text" name="sometime" class="ct_timepicker">You can also initialize the control by having set the 24 hrs format time in the value attribute of the element input element
bound with the control.
e.g.
<input type="text" value="13:01" name="sometime" class="ct_timepicker">If you want to make any improvements please submit pull requests, or file issues so we can make it better together.