JSFiddle - React, Tailwind, and code Playground
by Saqib Khan
HTML
<input type="text" id="search_btn" value=""/>
JavaScript
$('#search_btn').keypress(function(e) {
if(e.which == 13) {
alert("Enter pressed");
}
});