<div id="container">
<div>HEADER</div>
<div>CONTENT</div>
<div>FOOTER</div>
<div><textarea></textarea></div>
</div>
<button>activate overlay</button>
#container {
width: 200px;
height: 200px;
background-color: yellow;
}
live preview: http://jsfiddle.net/9DLyE/1/
I am seeking advice on the most effective way to create an overlay using jQuery. When the "activate overlay" button is clicked, I want to overlay (similar to fancybox) all elements within div#container, for example with a blue background color and 50% transparency.