Answer the question
In order to leave comments, you need to log in
Jquery. One callback after multiple hiding?
There is such a code: https://codepen.io/anon/pen/VQwyoO
The fact is that by hiding all these elements, the same callback is launched for each. For example, 100 elements - 100 callbacks, why? I do not need to call 100 identical callbacks (and the code in other scripts does not work correctly). You only need to execute 1 function after all the elements are hidden.
What does jquery provide for this?
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