JSFiddle - React, Tailwind, and code Playground
by meeky333
HTML
<form id="test">
<input type="text" value=":-)" />
<button id="thisOne">
Not a submit button!
</button>
<button type="button">
Also not a submit button!
</button>
<button type="submit">
The actual submit button!
</button>
</form>
JavaScript
$('#test').on('submit', function() {
console.log(":)");
});
alert($('button').text());