Can someone help me with this 400 bad request I'm getting? Here is my code:
saveBttn.click(function() {
var expireDate = $('#expire_date_picker').val();
var newStatus = $('#User_email').val();
if (expireDate.length > 0) {
$.ajax({
url: 'updateCases/',
data: {expireDate: expireDate, newStatus: newStatus },
type: 'POST',
success: function (data) {
alert("success!!");
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert(errorThrown);
}
});
}
});
Its not even getting to the desired action...