JSFiddle - React, Tailwind, and code Playground
HTML
<form action="#">
<input name="field-one"/>
<div>asdadsa</div>
<input name="field-two"/>
<input type="submit" value="submit"/>
</form>
JavaScript
$("input").bind("keydown", function(event) {
if (event.which === 13) {
event.stopPropagation();
event.preventDefault();
$(this).nextAll("input").eq(0).focus();
}
});