mobile ecommerce development

Javascript Kendo drop down change event

The following method set a global variable then checks to see if the drop down value changed from another drop drop.

Step 1 Create global variable

var currentPlannedStartDate = "";

Step 2 Method to check dates

DateRange_OnChangePlanStart = (e) => {
let planStart = $('# StartDate').val();
let ActStart = $('#Agreement_ActualStartDate').val();
if (currentPlannedStartDate === ActStart){
$('#Agreement_ActualStartDate').val(planStart);
currentPlannedStartDate = planStart; }
//populate if empty
if (ActStart === "") {
$('#Agreement_ActualStartDate').val(planStart);
} }
Get in touch