Dear Team,
I have used the code below for min.Date for datepicker it worked on desktop but not on mobile.
function addDays(days) {
var date = new Date(); // today
date.setDate(date.getDate() + days);
return date;
}
$w(“#reservationDatepicker ”).minDate = addDays(10);
here is the website www.turkeytravelconsultant.com
Do you have any idea? Thanks in advance!
Hi,
Please specify the name of the page.
Hi,
here is the link of one page;
2 days Cappadocia tour from Istanbul to discover the otherworldly wonders of Cappadocia on this immersive overnight tour, includes transpo...
Est. reading time: 1 minute
Today I have used this code instead of the one I mentioned.
const today = new Date();
let startDate = new Date(today);
startDate.setDate(startDate.getDate() + 20);
$w(“#reservationDatepicker ”).minDate = startDate;
Hi,
There are a number of hidden elements in your mobile editor which break the code.
To fix the issue, switch to the mobile editor and either unhide the elements or remove the relevant line(s) from your code.