I have a simple jQuery animation that moves a div to the right or left, upon a .click() event.
However, if the user clicks the event twice, it fires twice, which mes
I normally get around this by setting a global variable and run an if like
clicked = true; $(div).click(function(){ if (!clicked){ clicked = true; Your function with a callback setting clicked to false } .... })