View Single Post
Old 08-16-2012, 10:50 AM   PM User | #1
resin
Regular Coder

 
Join Date: Nov 2011
Posts: 142
Thanks: 5
Thanked 0 Times in 0 Posts
resin is an unknown quantity at this point
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..
resin is offline   Reply With Quote