I am using below which you have specified here "https://ej2.syncfusion.com/javascript/documentation/dialog/dialog-utility/ "
Here my question is how to HIDE the DIALOG Box when I click on OK Button.
document.getElementById('targetButton').onclick = function(){
ej.popups.DialogUtility.confirm({
title: ' Confirmation Dialog',
content: "This is a Confirmation Dialog!",
okButton: { text: 'OK', click: okClick },
cancelButton: { text: 'Cancel', click: cancelClick },
showCloseIcon: true,
closeOnEscape: true,
animationSettings: { effect: 'Zoom' }
});
};
function okClick(){
alert('you clicked OK button');
}
function cancelClick(){
alert('you clicked Cancel button');
}