V
V
Vladislav2020-10-03 11:39:09
JavaScript
Vladislav, 2020-10-03 11:39:09

How to do this validation in JavaScript?

How to validate the character count, as in jquery using the keydown event, what is counted in the field, if less than 2 characters, the erorr class is added, if more than 2 characters, the error class is removed, well, I think advanced front-enders understood the idea, but everything is native, no jquery

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ragtime Kitty, 2020-10-03
@SlavaMaxwell

You can change to keydown.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question