Topic: disablePat datepicker
Christian Cazzaro pro asked 4 months ago
I am trying to disable past dates of datepicker via data attributes but it's not working.
Here it's my code:
<div class="form-outline datepicker" data-mdb-toggle-button="false"> <input type="text" class="form-control" id="exampleDatepicker13" data-mdb-toggle="datepicker" data-mdb-disablePast="false"/> <label for="exampleDatepicker13" class="form-label">Check-in</label> </div>
Could you please help? Maybe I am doing something wrong?
When you declare via HTML you need to change Camelcase to lower case with a dash. Also, you need to set the value of the data attribute to true. Example snippet: https://mdbootstrap.com/snippets/standard/kpienkowska/4197897
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Pro
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 4.3.0
- Device: MacBook Pro
- Browser: Chrome
- OS: iOS
- Provided sample code: No
- Provided link: No