JSFiddle - React, Tailwind, and code Playground

by Leniel Maccaferri

HTML

<input id="mytextbox">

JavaScript

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