How to completely remove a dialog on close

$(this).dialog('destroy').remove()

This will destroy the dialog and then remove the div that was “hosting” the dialog completely from the DOM

Leave a Comment