On Apr 14, 2008, at 4:13 AM, Iminay wrote:
>
> sample code:
>
>       $(document).ready(function(){
>               $("#menu li").click(function(){
>                       $(this).fadeTo(1000,0).html("changed").fadeTo(1000,1);
>               });
>       });


$(document).ready(function(){
   $("#menu li").click(function(){
      $(this).fadeTo(1000,0,function() {
         $(this).html("changed");
      }).fadeTo(1000,1);
    });
});

To have the text change after the fade out you have to use a callback  
function.

--dave

Reply via email to