This is my jquery code
$.ajax({ url: \"PopUpProductDetails.aspx\", cache: false }).done(function (html) { $(\"#dialog\").append(htm
You can use .empty() first, then use .append() in one line :)
.empty()
.append()
like this:
$.ajax({ url: "PopUpProductDetails.aspx", cache: false }).done(function (html) { $("#dialog").empty().append(html); });