JSFiddle - React, Tailwind, and code Playground

by marlberm2014

HTML

<form action="addsomephpurlhere">
    <input type="text" />
    <input type="text" />
    <input type="button" id="dummyButton" value="Submit" />
    <input type="Submit" id="submitButton" value="Submit" style="display: none"/>
</form>

JavaScript

jQuery(document).ready(function() {
    $("#dummyButton").on("click", function(){
        alert("Do some checking");
        $("#submitButton").click();
    });   
});