JSFiddle - React, Tailwind, and code Playground
HTML
<form action="#" >
<input name="shidhin" value="" type="text"/>
<input id="submit" name="sb" value="GO" type="submit" onclick="alert(9);"/>
</form>
JavaScript
$('.input').keypress(function(e) {
if(e.which == 13) {
jQuery(this).blur();
alert('i m inside the scope of enter click');
jQuery('#submit').focus().click();
}
});