JSFiddle - React, Tailwind, and code Playground

by Rob Crowther

HTML

<section>
    <h2>Test</h2>
    <form id="form">
        <input type="text" name="test" id="test" required/>
        <input type="submit" value="Test"/>
    </form>
</section>

JavaScript

function manualValidate(ev) {
     ev.target.checkValidity();
     return false;
 }
 $("#form").bind("submit", manualValidate);