Example code in javascript to call an ajax
function changeDeliveryTime() {
var deliveryMethod = $('#deliveryMethod').val();
var delAddress = $('#delAddress').val();
var schedule = $('#scheduleko').val();
$.ajax({
type : "GET",
url : "/ajaxchangedeliveryschedule.do?deliveryMethod=" + deliveryMethod + "&address=" + delAddress + "&scheduleId=" + schedule,
success : function(response) {
//successfully change the time
//alert('successfully change the time');
},
error : function(e) {
alert('Error changing time schedule: ' + e);
}
});
}
