[jQuery] Re: Wait for Fade event to complete before initiating next action
$(this).fadeTo(1000, 0, function() { > $(this).html("changed").fadeTo(1000,1); > }); > }); > > }); > > --Karl > _ > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > On Apr 14, 2008, at 7:13 AM, Iminay wrote
[jQuery] Wait for Fade event to complete before initiating next action
Hi, I've been trying to change the content of an element using html(), however I want to fade the element out before I change the contents. sample code: $(document).ready(function(){ $("#menu li").click(function(){ $(this).fadeTo(1000,0).html("cha