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: