JSFiddle - React, Tailwind, and code Playground

HTML

<form>
<input id="Project.name" name="Project.name" type="text" value="test" />
</form>

<button>Test</button>

JavaScript

$("button").click(function() {
  alert($("form").serialize());
});