Hide delayed event canceled by removing event in jquery

I have a question on how to maintain one event with one action without being canceled on the next line from the code In this case, I don't want the delete action to override the hide behavior

It might be related to off category callbacks, but I'm not sure if I can use it in this case

the code under it is already in the callback with the load method

this is the code

$(".frmtbnote:last").submit(function(){
    $(this).parents(".paneltbnote").animate({ opacity: 'hide' }, "slow");
    $(this).parents(".wrappertbnote").remove();

         $.post("tbnotesact.php",{
        noteid: $tbnoteid,
        action: "remove",
        time: timestamp
             }, function(xml) {
             // do something


    });
    return false;
});

      

thanks richard

+1


a source to share


1 answer


I believe the callback is what you are after



$(this).parents(".paneltbnote").animate({ opacity: 'hide' }, "slow", function(){
    $(this).parents(".wrappertbnote").remove();
  }
);

      

+6


a source







All Articles