Hey,
i am using the jquery toggle function like this:
$(".class").toggle(
function() {
//things to do... animations and so on
},
function(){
// other things to do...
}
);
Now when I call the toggle effect by clicking very often the animations of the two functions don't wait for the other to finish. So I would like to disable the toggle effects undtil the stuff in each function is finished. So when the first function is called by the toggle the second one should not be called by another click on the .class element. And the other way round
Any idea how i could do that?
Thanks in advance, Phil