disable toggle button during animation

disable toggle button during animation

Hi,

Is it possible to disable a $.toggle() controlled button (image) during an animation? (I animate up and down a DIV playing with z-index, and when I click on the button when it's animating, the DIV slides down incorrectly...)

Or may I use click events and bind / unbind button when it's needed?

Thank you