This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// booking date check in > check out | |
$( document ).ready(function() { | |
var check_in = flatpickr(".in-date",{dateFormat: "d/m/Y",}); | |
var check_out = flatpickr(".out-date",{dateFormat: "d/m/Y",}); | |
check_in.element.addEventListener("change", function(){ | |
check_out.set( "minDate" , check_in.element.value ); | |
}); |