There are several JQuery plugins to put a modal dialog and show a dom element in the dialog. But I’m looking for a dialog overlay which can show some portion of the screen and these region should be accessible, while other elements should be blocked.
Share
I’ve put together a simple plugin to do this… Not sure the extent of your requirements, but it shouldn’t be too hard to build on it.
Basic usage is as follows (note that if your selector matches multiple elements, it will just mask the first):
Masking another element will unmask other masked elements or you can explicitly unmask things with:
Plugin code:
Edit: Bug fix with the panel dimensions, added a fade in/out & now
removes the mask if you click outside you’re masked regionhas a cancel button to remove the mask.Edit 2: JsFiddle demo