Reputation: 311
At the moment I'm using DatePicker (view-source:http://jqueryui.com/demos/datepicker/default.html) but I'm having difficulties adding Timepicker addon (https://github.com/trentrichardson/jQuery-Timepicker-Addon), How can I use the addon properly ?
Thank you :)
Upvotes: 2
Views: 22517
Reputation: 144689
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<!-- core, slider, datepicker -->
<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="js/timepicker.js"></script>
<script type="text/javascript">
$(function() {
$('#datetime').datetimepicker({
showSecond: true,
timeFormat: 'hh:mm:ss',
stepHour: 2,
stepMinute: 10,
stepSecond: 10
...
});
});
</script>
<input type="text" name="datetime" id="datetime" value="">
read its documentation here:
http://trentrichardson.com/examples/timepicker/
Upvotes: 5