JSFiddle - React, Tailwind, and code Playground
by elclanrs
HTML
<input>
JavaScript
$('input').keypress(function(e) {
if (/a/i.test(String.fromCharCode(e.which)) && /a+/.test(this.value)) {
e.preventDefault();
}
});
by elclanrs
<input>
$('input').keypress(function(e) {
if (/a/i.test(String.fromCharCode(e.which)) && /a+/.test(this.value)) {
e.preventDefault();
}
});