I have a overlay DIV with absolute position width height and width 100%. But when I click on the overlay DIV, click is happening on underlying elements of overlay DIV. Overlay DIV style is like below
.overlayDIV{
absolute : absolute;
height : 100%;
width : 100%;
z-index : 1234;
}
How can I prevent that…? This problem exists only in Windows mobile
You can stop the propagation of the event:
JavaScript:
jQuery:
Also if you have some handlers on mousedown down the page you need to cancel mousedown from your overlay div (same code but for mousedown handler).