Say I have a form like so on a page:
<form action="/add" method="post">
<input name="first">
<button type="submit">Submit</button>
</form>
The problem is when I click on the submit button the page tries to load http://localhost/add
as a URL. All I want to do is simply make the HTTP post request from the form, and then not reload the page, is this even possible to do with HTML semantics, or will I have to use some javascript to prevent the default action somehow and then make the request?
I know there have been many question on the topic, but they all seem to be making the requests via a library or javascript, and not utilising the built in form methods as I am?