Answer the question
In order to leave comments, you need to log in
How to make a function run in the background?
Hello. I want the function to validate the form in real time. But I would not like to set all if parameters in the global scope. How can a function be made to run in the background?
Answer the question
In order to leave comments, you need to log in
There is no such concept. Either call on a timer, or, more correctly, call on data change events in the form.
So track the keyUp event on the form inputs and run the validation function when it occurs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question