Not sure if this is a bug or not.
Taking the example from:
But adding an "action" attribute to the <form> element like so:
Means that whenever I click the "submit" button, it posts to "/" after it has run the "submit()" function.
According to the documentation:
"Additionally it prevents the default action (which for form means sending the request to the server and reloading the current page)."
Yet, this does not seem to be the case.
Removing the "action" attribute causes the code to work as expected.
Is this a valid bug? Does anyone know of a solution / workaround for this problem?
Thanks in advance,
Mark