Disable mouse events for a div ?


#1

Hi there

How can I disable mouse events of a div use jQuery or by using css …js ?

So the mouse events can pass this div to under div …

Thanks

-Newbie


#2

Use mouseenter/mouseleave


#3
element.style {
pointer-events: none;
}

Seemed to work for me


#4
ZoomIt said
element.style {
pointer-events: none;
}

+1, not supported by all browsers but the best available solution.

http://caniuse.com/pointer-events


#5
CodingJack said
ZoomIt said
element.style {
pointer-events: none;
}

+1, not supported by all browsers but the best available solution.

http://caniuse.com/pointer-events

Thanks guys , it works :slight_smile:


#6

Sorry for rescue this thread from the forgotten, but, is there any “elegant” solution for IE and Opera for this?