Topic: Datepicker set max value using HTML attribute

ilya premium asked 8 months 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 8 months ago

Here is link with example snippet:

sody priority commented 8 months ago

how about another format say dd/mm/yyyy ?

Kamila Pieńkowska staff commented 8 months ago

No, the HTML attribute accepts only this format.

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 5.0.0
  • Device: Laptop
  • Browser: Firefox
  • OS: Arch Linux
  • Provided sample code: Yes
  • Provided link: Yes