Topic: How to set time picker value programmatically?

david1 pro asked 5 years ago

Need to set default value from javascript

Jakub Strebeyko staff answered 5 years ago

Hi there David,

Thanks for the question. Our documentation does not cover this yet, as it has a big update coming up, but the Time Picker does have an option `default` to be set up during the initialization. The option takes in a string (like 'now' or `14:30`), like so:

default: '14:30'

With Best Regards,

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No