JQUERY CLEAR HTML AVANT APPENDER

$.ajax({
  url: "PopUpProductDetails.aspx",
        cache: false
    }).done(function (html) {
    $("#dialog").empty().append(html);
});
Good Goshawk