JSFiddle - React, Tailwind, and code Playground

by stodolaj

HTML

<html>
<body>
    <form id="test">
        <input type="text"/>
        <input type="text"/>
        <input type="submit"/>
    </form>
</body>
</html>

JavaScript

$(function() {
    $("form").submit(function() {
        alert("I don't know about that");
        return false;
    });
    
    alert(typeof $("form").submit);
    setTimeout($("form").submit, 500);
});