6
I would like to know how to remedy this problem. Example:
I have a function of fadeIn/fadeOut
. The event that triggers the function is the OnClick
in some element. The point is: How to avoid that when I give two clicks or more, the function is executed every time I click, an instance over the other?
Thus, the function performs again and Buga all the effect. I would like to know how to "stop" the office of the function that is already running, and only then run it again, to notice a new click before it completes...
It has something to do with that function (e) { e.preventDefault(); }
?
I don’t know if I explained it well, but whoever understands and can help I am very grateful. See you later.
How is your code?
– Maniero
Create an example showing this problem, read this article to help you: http://answall.com/help/mcve
– Gabriel Rodrigues
Come on, understand we need to see your code to help you.
– durtto