Hello
I'm having an error in an AJAX call in my JavaScript. For some reason, it does not get to the function in my Controller and gives the following error: SyntaxError: expected expression, got '.
This function is called as soon as I click a Modal button. It serves to create the data of a DataTable already created.
function EWBuild() {
$.ajax({
url: urlCreateBH,
data: { year: $('#findYearBH').val(), inputType: 1, month: $('#monthEW').val() },
dataType: "script",
type: 'POST',
success: function (result) {
CreateTableEW(result);
}
})
}