I need to know how can I stop the clicking function while it finishing the Animation
here is my code
$(function () {
$('legend').click(function () {
$(this).parent().find('.content').slideToggle("slow");
});
});
Change your selector slightly to exclude :animated
elements using :not
:
$(function () {
$('legend').click(function () {
$(this).parent().find('.content:not(:animated)').slideToggle('slow');
});
});
Working example: http://jsfiddle.net/andrewwhitaker/acKtG/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With