Answer the question
In order to leave comments, you need to log in
How to add a space limit to the character limit code?
I am using AJAX. I add a restriction to the field so that Russian characters can be used. What to add so that the space cannot be used, please tell me.
var res = /[^а-яА-ЯїЇєЄіІёЁ ]/g.exec(that.value);
that.value = that.value.replace(res, '');
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