JSFiddle - React, Tailwind, and code Playground
HTML
<form id="target" action="destination.html">
<input type="text" value="Hello there" name="test"/>
<input type="submit" value="Go" />
</form>
<div id="other">
Trigger the handler
</div>
JavaScript
$('#target').submit(function() {
$.post('url', $(this).serialize());
return false;
});