I have a collapsable grid which fades in and out when ever user click on a link. the problem is that when ever user clicks on the link multiple times very quickly,,multiple grids open and do not fade out..this problem is only seen in Firefox not in IE.
+2
A:
If the previous animation hasn't finished, you could get this problem. Make sure you stop previous animations. For example:
$("a.mylink").click(function() {
$("#somediv").stop().toggle();
return false;
});
The key here is stop()
.
cletus
2009-11-25 05:09:36
Thanks alot it worked...i never thought of the stop thing.
abbas
2009-11-25 07:11:14