Frontend/javaScript
dialog option
dddzr
2022. 5. 28. 16:51
.zindex9999{
z-index: 9999;
}
팝업창이 2개이상일때 팝업창의 앞뒤순서를 지정하기위해 zindex속성설정
$("#popup").dialog({
height: 300,
width: 400,
modal: true, //true: 부모화면 클릭 불가능
draggable: true,
title: "popup",
dialogClass: "zindex9999", //class 적용
buttons: [
{
text: 'Ok',
click: function () {
},
},
{
text: 'Close',
click: function () {
$(this).dialog("close");
},
}
]
});