Datepicker set max value using HTML attribute


Topic: Datepicker set max value using HTML attribute

ilya pro premium asked a year ago

Hi, I am using a Datepicker component and would like to add a maximum available date constraint to it. I would not like to add javascript code to set the limit, instead I would like to use an HTML data-mdb-max attribute. Could you please tell me in what format should I specify the value for the data-mdb-max attribute?


Kamila Pieńkowska staff answered a year ago

Here is link with example snippet: https://mdbootstrap.com/snippets/standard/kpienkowska/5674297#html-tab-view


sody pro premium priority commented a year ago

how about another format say dd/mm/yyyy ?


Kamila Pieńkowska staff commented a year ago

No, the HTML attribute accepts only this format.


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 5.0.0
  • Device: Laptop
  • Browser: Firefox
  • OS: Arch Linux
  • Provided sample code: No
  • Provided link: Yes
Tags