You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a form with class ajax is submitted via XHR, the POST request contains the submit button that was used to submit the form, which is the correct behavior. When submitted using following code (#form doesn't have the ajax class), the request doesn't contain the submit button, which causes an invalid response.
$('#form').on('submit', function (e) {
e.preventDefault();
console.log('Submitting #form');
$(this).netteAjax(e);
});
The text was updated successfully, but these errors were encountered:
When a form with class
ajax
is submitted via XHR, the POST request contains the submit button that was used to submit the form, which is the correct behavior. When submitted using following code (#form
doesn't have theajax
class), the request doesn't contain the submit button, which causes an invalid response.The text was updated successfully, but these errors were encountered: