How to close jQuery Dialog within the dialog? March 1, 2023 by Tarik you can close it programmatically by calling $('#form-dialog').dialog('close') whenever you want.