A Popup Dialog Box for jQueryMobile
SimpleDialog2 has a few publicly available data points:
The currently running dialog object - reference removed on close.
The value from the input element in Button->Input mode
Common function tasks:
Immediatly close the open dialog
Replace the HTML in an *open* blank dialog with "content"
Immediatly close all open dialogs (Note: nesting probably is a bad, bad idea)
When using the "blank" mode, you can include a link/button/element with rel='close' in the HTML - when clicked, it will automatically close the dialog.