My JS: // date picker var dateElement = document.querySelector('#kt_daterangepicker_3 .value'); var daysElement = document.querySelector('#kt_daterangepicker_3 .days'); var picker = new tempusDominus.TempusDominus(document.getElementById("kt_daterangepicker_3"), { display: { viewMode: "calendar", components: { decades: true, year: true, month: true, date: true, hours: false, minutes: false, seconds: false } }, restrictions: { minDate: new Date() // set the minimum date to today's date } });
Can you please check the plugin's official documentation here? You should use the subscribe function to interact with the picker using its custom events or API methods.