JSFiddle - React, Tailwind, and code Playground
by vickaita
HTML
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form action="foo" method="POST" id="my-form">
<button type="submit" value="save"><span>Save</span></button>
</form>
</body>
</html>
JavaScript
$('#my-form').on('submit', function(e) {
e.preventDefault();
alert('submit');
});