JSFiddle - React, Tailwind, and code Playground

HTML

<form action="http://google.com/" method="POST">
    <input type="text" value="ohai"/>
    <input type="submit" value="submit!"/>
</form>

JavaScript

$("form").attr("action","http://jquery.com");