Based on user input I need to show different calendars. I tried the below logic but it has not worked for me. Is there any setter function that we can use to switch calendar using code snippet ?
if(_this.val() == 1) {
// I need to show hijri calendar
_dateSelctor.hijriDatePicker({
hijri: true,
locale: 'ar-sa',
format: 'YYYY-DD-MM',
useCurrent: false,
showSwitcher: false
});
}else{
// I need to show Gregorian calendar
_dateSelctor.hijriDatePicker({
hijri: false,
locale: 'ar-sa',
format: 'YYYY-DD-MM',
useCurrent: false,
showSwitcher: false
});
}
Based on user input I need to show different calendars. I tried the below logic but it has not worked for me. Is there any setter function that we can use to switch calendar using
code snippet
?