|
prevent click while animating?
Hello, I have a jQuery function that executes when I click a certain element. It consists of a few fades and animations, which take a few seconds to play all the way through. How can I prevent the function from executing a second time, while those fades and animations are still going on? And whenever the fades and animations aren't going on, then I want to be able to click the element again. I guessing it's something to be placed before the .click, $('#test').?.click(function() {}); ??
Last edited by resin; 08-16-2012 at 10:53 AM..
|