How can i set a preselect Date?


Topic: How can i set a preselect Date?

KeHa pro premium priority asked 12 months ago

How can i set a preselect Date for the Datepicker?

I alwaysed used that attribute data-value="date" at the input and then i update the instance in JS var datepicker = mdb.Datepicker.getOrCreateInstance(datePickerContainer); datepicker.update(datepickerOptions());

But this dont work anymore.


Kamila Pieńkowska staff answered 12 months ago

Do you want to set the initial date or choose the default date to which datepicker will navigate on the initial open?

I've prepared example of both: https://mdbootstrap.com/snippets/standard/kpienkowska/5905533


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.2.0
  • Device: ThinkCentre
  • Browser: Firefox
  • OS: Win10
  • Provided sample code: No
  • Provided link: No
Tags