Form submit empties DOM when using AJAX
Hi!
I have an issue when using ajax on a self-submitting form.
If I turn off AJAX, everything works fine.
I can see the response is returning the HTML fine, but the DOM is emptied instead of inserting returning HTML.
Anyone had similar issues?
P.S: AJAX is turned off, so you need to use your firebug/dom-inspector to change the data-ajax attribute on the form from "false" to "true" before submitting.