Browse - Programming Tips - jQueryUI / Bootstrap: close a modal dialog

Date: 2019jul24
Library: Bootstrap
Library: jQueryUI
Language: javaScript

Q.  jQueryUI / Bootstrap: close a modal dialog

A.

var dlg = $('#mydialog'); // jQuery
jQueryUI
dlg.dialog('close');
Bootstrap (versions 3 and 4)
dlg.modal('hide');