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
Just check if element is already animating:
$('a#right').click( function () { if ($(this).is(':visible') && !$('#slide').is(':animated')) { $('#slide').animate({right: '+=257'}, 400, function () { slide_button(); }); } });