$(document).ready(function() { $(function() {$('div.datepicker input') .datepicker({ dateFormat: 'd M yy', nextText: ">", prevText: "<" }) ;}); $('.timepicker input').timepicker({ 'timeFormat': 'H:i', 'step': 5, 'minTime': '9:00', 'maxTime': '16:30', 'disableTimeRanges': [ ['12:15', '14:00'] ] }); });