I am working on an Enterprise app. I need to style certain pop-ups that are shown in application. I found that whenever a popup is shown following div is added to the body.
<div class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-front ui-draggable ui-resizable" tabindex="-1" role="dialog" aria-describedby="ui-id-12" aria-labelledby="ui-id-13" style="position: absolute; height: auto; width: auto; top: 263px; left: 626px; display: none;">
The idea is to detect when this popup is added and then add classes to it as per my need. To accomplish that and for this I am using following code
$(document).on('DOMNodeInserted',"div.ui-dialog", function(e){
console.log("Dialog Div Added");
});
But this is not working.
Please Help