JSFiddle - React, Tailwind, and code Playground
by evan
HTML
<textarea></textarea>
JavaScript
$('textarea, input:text').on('keyup', function (e) {
if (e.which === 27) {
$(this).val('');
}
});
by evan
<textarea></textarea>
$('textarea, input:text').on('keyup', function (e) {
if (e.which === 27) {
$(this).val('');
}
});