JSFiddle - React, Tailwind, and code Playground

by no2don

HTML

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<form method="post" action="https://www.google.com.tw">

<input id="example" type="text" name="text">

<button onclick="return func1()">
test
</button>
</form>

JavaScript

function func1(e){
//e.preventDefault();

return false;
}