how can i disable click event before fadein and enable it after fadeout?
my js code:
$('a').click(function(){
// disable click
$('div').fadeOut(400,
function(){
$(this)
.css('background','yellow')
.fadeIn(1800, function(){}
// enable click
);});
});
i coulda use stop() but i need disable/enable plz modify my http://jsfiddle.net/WBWrM/1/ thx