Set Datepicker value manually - problem with label


Topic: Set Datepicker value manually - problem with label

Joachim Schneider pro premium priority asked 4 years ago

Expected behavior If i set the value of a empty datepicker field, it should update the value AND move the label to the top. Currently it only updates the value.

Example: $(#date-picker-input-field).val("2020-01-02");

Actual behavior enter image description here

Is there a workaround to move the label to the top?


Dawid Wajszczuk staff answered 4 years ago

Hi,

Here is the snippet https://mdbootstrap.com/snippets/standard/d-wajszczuk/3152788#html-tab-view. Everything works fine .

Keep coding,
Dawid


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 3.8.0
  • Device: Web
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No
Tags