JSFiddle - React, Tailwind, and code Playground

by Timmy Willison

HTML

<form id="formid" action="/">
    <input name="email" type="email" value="foo@bar.com">
</form>

JavaScript

$("#formid").submit(function() {
  $.get("/echo/html", { "form": "formid" }, function(data) {
      console.log(data);
  });
  return false;
});