JSFiddle - React, Tailwind, and code Playground
by cmruser
HTML
<input />
JavaScript
$('input').on('keyup', function (e) {
if (e.key === 'Enter' || e.keyCode === 13) {
console.log('enter')
}
});
by cmruser
<input />
$('input').on('keyup', function (e) {
if (e.key === 'Enter' || e.keyCode === 13) {
console.log('enter')
}
});