Answer the question
In order to leave comments, you need to log in
What is the logic in the condition?
Here is a piece of code for the input.
input.addEventListener('keypress', (e)=>{
if(e.key.match(/[^а-яё 0-9]/ig)){
e.preventDefault()
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question