JSFiddle - React, Tailwind, and code Playground
HTML
<form id="gg" method="post">
<input name="languageId" type="text">
<input name="languageName" type="text">
</form>
<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
<script>
$('#gg input').keypress(function (e) { // listen to keypress on your input controls
if (e.which == 13) { // if enter key...
$('#gg').submit(); // submit the form
}
});
$('#gg').submit(function() {
alert('s');
});
</script>