close ui dialog by script code example Example: jquery close another dialog $("#modalSearch").dialog('close');