Date picker default value


Topic: Date picker default value

jouvrard pro asked 6 years ago

When I put a default value to a date picker, the label doesn't move up, so the label stay over my value. My code:
<input name="d_debut" class="form-control datepicker picker__input" id="d_debut" aria-expanded="false" aria-haspopup="true" aria-readonly="false" aria-owns="d_debut_root" required="" type="text" readonly="" data-value="2018-10-27">
An idea? :)

Piotr Glejzer staff commented 6 years ago

If you remove data- from data-value everything is going well.

jouvrard pro commented 6 years ago

Ok, so I mustn't follow the MDB guide to do that. ;) Thanks! :)

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
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.10
  • Device: PC
  • Browser: All
  • OS: Windows 10
  • Provided sample code: Yes
  • Provided link: Yes
Tags