JSFiddle - React, Tailwind, and code Playground
HTML
<form name="f1" method="get" action="" onsubmit="send_data()">
name : <input type="text" id="value_1" value=""/>
<input type="button" name="submit" onclick="send_data()" value="send"/>
</form>
JavaScript
function send_data(){
console.log('hello');
var value_1 = $('#value_1').val();
window.location = '/aaa/';
return false;
}
function checkData(){
alert('heloo2');
}