JSFiddle - React, Tailwind, and code Playground
HTML
<HTML>
<BODY>
<form action="/foo/bar">
<input type="text" name="foo"/> <input type="text" name="bar"/>
<br><br>
<input type="submit" name="save" value="Save"/>
<br><br>
<input type="button" name="test" value="Test" onclick="$(':submit').click();"/>
</form>
</BODY>
</HTML>
JavaScript
$(":submit").live('click', function() {
alert('button clicked');
});
$("form").live('submit', function() {
alert('form submit');
});