Thank you for your reply. This is a great plugin.
This feature is not inbuild, and MetForm also using flatpickr.js for Date selection.
And flatpickr already have this feature.
https://flatpickr.js.org/examples/#disabling-dates
I try to use this but when I click on the date selector it’s showing me 2 calendars. One is normal and when I select any date from another calendar my form is disappear.
Please help me with modifying this code.
<script>
var $ = jQuery
$(document).ready(function(){
$(".selector").flatpickr({
"disable": [
function(date) {
// return true to disable
return (date.getDay() === 0 || date.getDay() === 6);
}
],
"locale": {
"firstDayOfWeek": 1 // start week on Monday
}
});
})
</script>