pwt.datepicker icon indicating copy to clipboard operation
pwt.datepicker copied to clipboard

How to change Hour and Minutes when run other event on timePicker?

Open reza-khalafi opened this issue 2 years ago • 1 comments

I have button and want to when click on it, set 09:00 on timPicker.

reza-khalafi avatar Sep 10 '22 05:09 reza-khalafi

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) {

                },
            });
        });

reza-khalafi avatar Sep 10 '22 07:09 reza-khalafi