I am using jQuery UI draggable. I have stack of elements with z-indexes and one element that is completely over the draggable container. I can't set it to draggable because click events aren't getting through to it because it is behind another element.
How can I access that element and get it to respond to the mouse events?
My CSS:
#top {
    width:500px;
    height:500px;
    z-index:5;
    background-color:rgba(255,0,0,0.5);
    position:absolute;
}
#child {
    width:300px;
    height:300px;
    z-index:4;
    background-color:rgba(0,255,0,0.5);
    position:absolute;
    top:50px;
    left:50px;
}
#draggable {
     width:200px;
    height:200px;  
    z-index:4;
    background-color:rgba(0,0,255,0.5);
    position:absolute;
    top:10px;
    left:10px;
}
My HTML:
<div id="top"></div>
<div id="child">
    <div id="draggable"></div>
</div>
And my Javascript:
$(function(){
    $("#draggable").draggable({
        containment: "child"
    });
});
I have also put all this code into JS Fiddle to demonstrate: http://jsfiddle.net/wvSqk/
Thanks
 
     
     
     
     
    