Such a task: the user began typing in Russian, an error appears after entering the first letter, the input is blocked, the entered letter is not deleted:
$('.js-au-email').keyup(function() { var regexp = /^[a-zA-Z0-9-_@\.]+$/i; if(!regexp.test(this.value)) { alert('ΠΎΡΠΈΠ±ΠΊΠ° Π² ΡΠΈΠΌΠ²ΠΎΠ»Π΅') } else { } }); Tell me how to further prohibit input, but without blocking the text field, to give the opportunity to delete the character?
a-zA-Z, but you can simplyazand if you need to check for Russian letters, thenaz- Alex