Answer the question
In order to leave comments, you need to log in
Validation in JS, how to make sure that user data is saved in the input field?
I must say right away that I am slightly less than weakly familiar with JS.
There is a certain form with several input fields, such as "first name", "last name", "password", "date of birth", etc.
Each field is checked with simple if/else constructs and, accordingly, if the data does not pass the check, a corresponding warning window appears. If they pass, the field is reset to zero. So here's how to make sure that correctly entered data remains in the field when re-filling incorrectly filled fields? That is, so that the user does not have to enter the first and last name twice just because the first time he made the password wrong?
Thank you in advance.
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