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:

Rating: 2003

Propose a different solution...