jquery ui 의 modal dialog 의 경우, z-order 문제 때문에 body 맨 아래로 DOM 이 옮겨진다. 이로 인해서 jquery.load() 와 조합해서 dialog() 를 중복 호출하면 계속 DOM 이 중복 추가된다. 해결책은 기존의 DOM 을 삭제하는 것. $(.dialog.ui-dialog-content).dialog(destroy).remove(); $(.dialog).dialog({});
jquery ui 의 modal dialog 의 경우, z-order 문제 때문에 body 맨 아래로 DOM 이 옮겨진다. 이로 인해서 jquery.load() 와 조합해서 dialog() 를 중복 호출하면 계속 DOM 이 중복 추가된다. 해결책은 기존의 DOM 을 삭제하는 것. $(.dialog.ui-dialog-content).dialog(destroy).remove(); $(.dialog).dialog({});