JSFiddle - React, Tailwind, and code Playground

by Leniel Maccaferri

HTML

<input id="mytextbox" style="width:300px" placeholder="Only English letters are allowed here...">

JavaScript

$('#mytextbox').bind('keyup blur', function() {
    $(this).val($(this).val().replace(/[^A-Za-z]/g, ''))
});