Answer the question
In order to leave comments, you need to log in
How to check if at least one field is filled?
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 following attempts, the event does not work.
At the very thought of switching flags arises (false to true or vice versa). Thank you.
Answer the question
In order to leave comments, you need to log in
I would also suggest paying attention to OpenCart , it supports all the functionality you declared (most of the box, the rest are modules).
www.opencart.com ? If it's not enough with the modules, then write your own.
DotPlant2 is unambiguous, I attach the link here , it suits all your requirements, if you work with the Yii2 framework, then there are no problems at all.
Hello, I don’t see the code, I’ll 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 a blur event, which, respectively and control the state of your input already in the methods, and then render everything you need
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question