Jquery - Close opened dialog box

Following javascript can be used to close any open dialog.


function CloseCurrentPopup() {
    var diag = $(".ui-dialog");
    var close = $(".ui-icon-closethick", diag);
    close.click();
    $(".ui-dialog").dialog("close");
}

Comments

Popular posts from this blog

Embedding PowerBI with ASP.NET Core 2 and Angular(2,4,5)

Handling Exit Event of Console Application in C#

CSS text-overflow ellipsis in the beginning of the the text - Left Ellipsis using CSS in a Flex box