JSFiddle - React, Tailwind, and code Playground
HTML
<script>
function f1() {
alert("f1 called");
//form validation that recalls the page showing with supplied inputs.
}
</script>
<table>
<tr>
<td id="Save">click</td>
</tr>
</table>
<script>
document.getElementById("Save").onclick = function fun() {
alert("hello");
f1();
//validation code to see State field is mandatory.
}
</script>