SyntaxError: expected expression, got '' in AJAX call

0

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);
      }
   })
}
    
asked by anonymous 29.08.2018 / 21:06

0 answers