How to check if at least one field is filled in?

  • 0
    Good day!
    There is a form, and a check is needed so that if the user once entered something in any field and switched to another field, then the event will fire. And in the next attempts, the event does not fire.
    At the very thought of switching flags arises (false to true or vice versa). Thank you.
    JavaScript Anonymous, Feb 18, 2019

  • 1 Answers
  • 0
    Hello, I do not see the code, I will assume that there is a certain Input class that we use to work with form elements, it has model fields - which stores the value itself, and for example validation - which stores the fields: dirty, error, hang up the blur event, which, respectively and control the state of your input already in the methods, and then render everything you need
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!