Destroying the Div and its contents inside the jquery dialog when close button is clicked

👍:0

Try wraping the whole rendering space inside a div and give id to your div, assuming id of your div is graphDiv, then to empty all the contents inside this div you can write:

$("#graphDiv").empty();

I guess this should solve your problem.

Leave a comment