Skip to main content
Fixed spelling; minor improvements for better readability.
Source Link
informatik01
  • 16.5k
  • 11
  • 82
  • 112

Form submit not working after second attempt in jquery ajaxjQuery AJAX

I have a form in my project that will be submitted by jQuery AjaxAJAX.

The data will be validated on the server side and if the data is invalid it will load the formform with validation errors and append that HTML to the div.

On the next form submission attempt, it is directly redirected to the form action URL, i.e. event.preventDefault() is not working.


Here is my code:

Form submit not working after second attempt in jquery ajax

I have a form in my project that will be submitted by jQuery Ajax.

The data will be validated on the server side and if the data is invalid it will load the form with validation errors and append that HTML to the div.

On the next form submission attempt, it is directly redirected to the form action URL i.e event.preventDefault() is not working.

Form submit not working after second attempt in jQuery AJAX

I have a form in my project that will be submitted by jQuery AJAX.

The data will be validated on the server side and if the data is invalid it will load the form with validation errors and append that HTML to the div.

On the next form submission attempt, it is directly redirected to the form action URL, i.e. event.preventDefault() is not working.


Here is my code:

iI have a form in my project that will be submitted by jquery ajaxjQuery Ajax.

The data will be validate invalidated on the server side. And and if the data is not validinvalid it will load the form with validation errors and append that htmlHTML to the div.

On the next form submission attempt, it is directly redirectredirected to the form action urlURL i.e event.preventDefault() is not working.

data = form with validation error if not validateinvalid.

i have a form in my project that will be submitted by jquery ajax.

The data will be validate in the server side. And if data is not valid it will load the form with validation errors and append that html to the div.

On the next form submission attempt it is directly redirect to the form action url i.e event.preventDefault() is not working.

data = form with validation error if not validate

I have a form in my project that will be submitted by jQuery Ajax.

The data will be validated on the server side and if the data is invalid it will load the form with validation errors and append that HTML to the div.

On the next form submission attempt, it is directly redirected to the form action URL i.e event.preventDefault() is not working.

data = form with validation error if invalid.

added 5 characters in body
Source Link

On the next form submission attempt it is directly redirect to the controllerform action url i.e event.preventDefault() is not working.

On the next form submission attempt it is directly redirect to the controller i.e event.preventDefault() is not working.

On the next form submission attempt it is directly redirect to the form action url i.e event.preventDefault() is not working.

Source Link
Loading