You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello thx for ur grate work! I have the problem) When i select checkin date and it more than checkout date, input with checkout date cleared. I was tried event "onChangeCI" and tried update with method 'updateCO' this give me error: Uncaught TypeError: Cannot set property 'innerHTML' of undefined. May be i'm doing something wrong ?) Can u help me?
This my code: `let datePicker = $('.t-datepicker');
let today = new Date();
let tomorrow = new Date();
tomorrow.setDate(today.getDate() + 1);
let getCheckIn = datePicker.find('input[name=checkin]').attr('data-value');
let getCheckOut = datePicker.find('input[name=checkout]').attr('data-value');
Hello thx for ur grate work! I have the problem) When i select checkin date and it more than checkout date, input with checkout date cleared. I was tried event "onChangeCI" and tried update with method 'updateCO' this give me error: Uncaught TypeError: Cannot set property 'innerHTML' of undefined. May be i'm doing something wrong ?) Can u help me?
This my code: `let datePicker = $('.t-datepicker');
let today = new Date();
let tomorrow = new Date();
tomorrow.setDate(today.getDate() + 1);
let getCheckIn = datePicker.find('input[name=checkin]').attr('data-value');
let getCheckOut = datePicker.find('input[name=checkout]').attr('data-value');
datePicker.tDatePicker({
startDate: today,
limitDateRanges: 31,
titleToday: 'Сегодня',
titleDays: ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'],
titleMonths: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],
iconArrowTop: false,
iconDate: '',
titleDateRange: '',
titleDateRanges: '',
titleCheckIn: '',
titleCheckOut: '',
dateCheckIn: getCheckIn ? getCheckIn : today,
dateCheckOut: getCheckOut ? getCheckOut : tomorrow,
}).on('onChangeCI', function (e, changeDateCI) {
datePicker.tDatePicker('updateCO', '2019-01-31')
});`
The text was updated successfully, but these errors were encountered: