Partially replying to myself : I now use this success: cachepd() inside pdoptions and cachepd is this simple function : function cachepd() { $('#pdresult').fadeOut(5000); };
But it seems like fadeOut deletes the div from the DOM because it's not updated anymore if I submit the form again...