pwt.datepicker
pwt.datepicker copied to clipboard
How to change Hour and Minutes when run other event on timePicker?
I have button and want to when click on it, set 09:00 on timPicker.
So i did it like this:
$('.my-btn-class').click(function(e) {
$(".time-class").attr('value', '09:00:00')
$( '.time-class' ).pDatepicker( {
onlyTimePicker: true,
format: 'HH:mm',
timePicker: {
second: {
enabled: false
}
},
autoClose: true,
onSelect: function (unix) {
},
});
});