JSFiddle - React, Tailwind, and code Playground
by Cale Bergh
HTML
<input type="text" name="test" id="someid" class="numbers-only">
JavaScript
jQuery(function($) {
$(".numbers-only").on("keyup blur", function() {
$(this).val($(this).val().replace(/[^a-z]/ig, ''));
});
});