JSFiddle - React, Tailwind, and code Playground

HTML

<form id="search" method="post" action="">
    <input type="text" name="uid" value="ptt">
    <input type="submit" name="submit1" value="OK">
</form>

JavaScript

$("#search").on("submit", function(e){
    return SearchHandle(e, $(this));
    /*
    請問怎麼將return false移到 SearchHandle()裡面,
    不讓原本的submit事件發生?
    */
});

function SearchHandle(event, oo) {
    alert('Hi');
    event.preventDefault();
    return false;
}