I have used this dataampick and I do not set the default time instead of the current time.
Can anyone help me about this stuff? Thank you. You can set the default time via javascript:
$ ('MySelector'). Timepecker ({defaultTime: '10: 45 PM '});
Or directly through the value attribute of its time-pecker:
& lt; Div class = "bootstrap-timepicker" & gt; & Lt; Input id = "timepicker" type = "text" value = "10:45 am" /> & Lt; / Div & gt; $ ('. MyClass'). Timepier ({defaultTime: 'value'});
EDIT: For the default typewriter of bootstrap, I was bad.
For your specific Typakkar, it is possible to set the date time:
var picker = $ ('# datetimepicker'). Data ('datamappers'); Picker.setDate (myDate);
Comments
Post a Comment