JSFiddle - React, Tailwind, and code Playground
HTML
<form method="POST">
<input type="submit" value="Approve" /> <input type="submit" value="Update" />
</form>
JavaScript
$("form").submit(function(e) {
e.preventDefault();
$(':submit', this).attr('disabled', true);
$(this).append($('<input/>').attr({
type: 'hidden',
name: $(':submit', this).attr('type'),
value: $(':submit', this).attr('value')
}));
alert($(':submit', this).attr('value'));
});