JSFiddle - React, Tailwind, and code Playground
by Trey Hunner
HTML
<form method="post">
<input name="html" value="<b>POST test</b>">
<input type="submit">
</form>
JavaScript
$("form").submit(function(event){
event.preventDefault();
$.post("/echo/html/", $(this).serialize(), function(data){
document.write(data);
});
return false;
});