JSFiddle - React, Tailwind, and code Playground

by aero2600

HTML

<h5>Reduced code example</h5>
<form id="exampleForm" name="exampleForm" action="/exampleFormAction" method="post" class="exampleClass">
    <input type="text" id="action" name="action">
</form>
<p>The above javascript has not changed the 'action' attribute of the form like it should have.</p>

JavaScript

jQuery('form#exampleForm').attr('action', '/formActionChanged');