Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Datepicker set max value using HTML attribute

ilya premium asked 1 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 1 year ago


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


sody priority commented 1 year ago

how about another format say dd/mm/yyyy ?


Kamila Pieńkowska staff commented 1 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

  • 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