JQuery Time Picker
This is a good Easy Time picker Given By
http://timepicker.co/#
Interrogate With your Page :
Need To Download Following Files :
https://github.com/wvega/timepicker/releases
https://cdnjs.cloudflare.com/ajax/libs/timepicker/1.3.5/jquery.timepicker.min.css
https://cdnjs.cloudflare.com/ajax/libs/timepicker/1.3.5/jquery.timepicker.min.js
Header Section : Load two Files
<script src="public/js/jquery.timepicker.min.js" type="text/javascript"></script>
<link href="public/css/jquery.timepicker.min.css" rel="stylesheet" type="text/css"/>
Page :
HTML:
<div class="col-md-2 col-sm-6 col-xs-8" >
<div class='input-group date' id='divtimeFrom' value="" >
<input type='text' class="form-control" id="timeFrom" name="timeFrom" required="true" />
</span>
</div>
</div>
JS:
$('#timeFrom').timepicker({
timeFormat: 'h:mm p',
interval: 60,
minTime: '00',
maxTime: '23:00pm',
defaultTime: '8',
startTime: '00:00',
dynamic: false,
dropdown: true,
scrollbar: false
});
Comments
Post a Comment