2
I created a modal window, the window is working, the button in the right corner appears, the event to close the window works perfectly, the image on the button does not appear. What should I do?
function MessageBox(titulo, mensagem) {
$('body').append('<div id="janelaMensagem" title="' + titulo + '" style="display:none"> <p>' + mensagem + '</p> </div>');
$(function () {
$("#janelaMensagem").dialog({
modal: true,
close: function () {
$(this).remove();
},
buttons: {
"Fechar": function () {
$(this).dialog("close");
$(this).remove();
}
}
});
});
}
Welcome to Sopt. Edit your question and I’ve added more information, such as pieces of code that replicate your problem. Also, take a look at tour and also help to how to ask. The way it is it’s hard to guess what might be causing the problem.
– Bruno César
may be some problem in your ui theme.. have a look at your code here http://jsfiddle.net/toLxx4fo/ with this theme https://code.jquery.com/ui/1.11.4/themes/black-tie/jquery-ui.css :)
– Brunno