I am trying to create an overlay, similar to the one that jQuery UI Dialog uses. I can create the overlay like this:
var $overlay = $(\'
It's very simple, to create overlay just use this code:
var overlay = new $.ui.dialog.overlay();
and when you have to destroy it use this code:
overlay.destroy();