How to self close a jQuery Dialog

I need to be able to have a jQuery Dialog self close. I am creating ASP.NET controls, and want the buttons to be on the control itself, not defined when creating the jQuery dialog.

Related tags: .NET JavaScript

The following command closes all open dialogs:
jQuery(".ui-dialog-content").dialog("close");

Rating: 2

Propose a different solution...