Disable Link while animated Basket
Posted
by Dante
on Stack Overflow
See other posts from Stack Overflow
or by Dante
Published on 2010-06-17T19:20:49Z
Indexed on
2010/06/17
19:23 UTC
Read the original article
Hit count: 236
jQuery
|shopping-cart
Hi,
I'm using this script for my online shopping basket: http://www.webresourcesdepot.com/fly-to-basket-effect-with-jquery/.
Like people suggest in the comments it's easy buggy when you click multiple times on the same image. How can I disable the img link when it's clicked once and re-enable it when the product is added to the basket?
I've tried setting the attribute HREF of to # in the beginning of the function, but that doesn't help.
So when a user clicks the function needs to be executed, but the link should be disabled as long as the function is busy.
thanks in advance for your help.
© Stack Overflow or respective owner