JSFiddle - React, Tailwind, and code Playground
HTML
<form name='oldCode'>
anoying legacy code old over 10 years
<input type='submit' onclick='document.oldCode.submit(); return false;'>
</form>
JavaScript
$(document).ready(function() {
$('form').submit(function() {
alert(1);
})
})