OK, I've checked this thread:
http://stackoverflow.com/questions/1012447/prevent-click-event-in-jquery-triggering-multiple-times
and attempted to unbind/re-bind an event as described but to no avail. I basically have a slider gallery, with a next/prev button. I want to prevent the next button from being clicked for the duration of the animation.
prev = $("#portfolio_nav_prev"); next = $("#portfolio_nav_next"); function nextAnim(){ //remove handler next.unbind();
gallery_frame.animate({scrollLeft:targetPos}, 300, 'easeInOutQuart',function(){next.bind(nextAnim)}); return false; }
any ideas?