W
W
Worddoc2016-03-25 14:33:05
JavaScript
Worddoc, 2016-03-25 14:33:05

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

2 answer(s)
P
Pavel K, 2016-03-25
@Worddoc

There is no such concept. Either call on a timer, or, more correctly, call on data change events in the form.

M
Mikhail Abroskin, 2016-03-25
@miker059

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 question

Ask a Question

731 491 924 answers to any question