JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" value="" />
JavaScript
$('input').keyup(function (something) {
if(something.keyCode == 13) {
$(this).val('Enter was pressed');
}
});
<input type="text" value="" />
$('input').keyup(function (something) {
if(something.keyCode == 13) {
$(this).val('Enter was pressed');
}
});