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 = $(\'
Check that: var $dial=$(''); $dial.dialog({modal:true}); $('.ui-dialog').hide();