Topic: How to set time picker value programmatically?

david1 pro asked 6 years ago


Need to set default value from javascript

Jakub Strebeyko staff answered 6 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:

$('#yourtimepickerid').pickatime({
default: '14:30'
});

With Best Regards,
Kuba



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

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