Closed Umarali33 closed 4 years ago
in order to catch change event use the followings
$("#CaseHijriDate").on('dp.change', function (event) {
console.log(event.date)
});
other events
dp.hide
on hidedp.show
on showdp.error
on errordp.update
on updatewe should add this in the documentations
Thanks
Thanks it's worked.
$("#CaseHijriDate").on('dp.change', function (event) { console.log(event.date) }); its return georgian date.i want selected date should be in hijri format.
You can try
$(this).data('date');
Thanks
How can I pick on change event? I try lots of methods but nothing worked.
jQuery("#CaseHijriDate)").hijriDatePicker({ locale: "ar-sa", format: 'mm/dd/yyyy', hijri: true, hijriFormat: 'iMM/iDD/iYYYY', showSwitcher: false, allowInputToggle: false, showTodayButton: true, useCurrent: true, isRTL: false, keepOpen: false, showClear: true, showClose: false }).change(function () { alert('test'); });
i also try below code but not succesjQuery('#CaseHijriDate)').change(function () { alert('test'); });
also please mention all events which is working.