diff --git a/js/modal.js b/js/modal.js index 537808d..f7a3723 100644 --- a/js/modal.js +++ b/js/modal.js @@ -10,8 +10,11 @@ function modalPage(create, width, sec, title, message, color, type, func, close, /** Verifica se é a criação da janela popup/modal */ if (create === true) { - /** Remove o modal anterior */ - $('div').remove('#modal-block'); + // Obtém a div pelo ID + const div = document.getElementById('modal-block'); + + // Remove o elemento do DOM + div.remove(); var div = ''; var color_modal = '';