<span>Введи <b>JS</b></span>
<input type="text">
const input = document.querySelector('input')
input.addEventListener('input', function(e) {
if(this.value.match(/JS/)) {
this.disabled = true
}
})
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.