i have code on the onSelect event of the jquery ui datepicker and i now want to only run my function if the date has changed values (so if a user selects a date that was already there in the textbox, i don’t want to run this code as it will be a redundant calculation). Here is my existing code.
$('#Milestone').datepicker({
dateFormat: 'dd M yy',
onSelect: calcUpdate
});
You can use data to store previously stored value and compare the current value to it.
Try this(put these statements in your document ready event):