By default, jQueryUI Dialog will automatically append a widget element and a widget overlay element (if using modal:true) into the <body> tag.
My question is: can we set jQueryUI dialog to append its widget element and overlay widget into another element instead of the <body> tag?
There isn’t a built-in option to do this, but I’ve had success moving around elements when the dialog is opened:
Here’s a working example: http://jsfiddle.net/peMGg/