JSFiddle - React, Tailwind, and code Playground
by beneverard
HTML
<form>
<input value="This will fire submit" />
<table>
<tr>
<td>
<input value="This wont fire submit" />
</td>
</tr>
</table>
</form>
JavaScript
$(document).ready(function() {
$('input, select, textarea', 'table').on('keydown', function(e) {
if (e.keyCode == 13) {
return false;
}
});
});