How to type into a text box or click a button ,which has a overlaying div. I need to access the text box even though there is a div or image over it.Please help.
Asked
Active
Viewed 180 times
1
-
possible duplicate of http://stackoverflow.com/questions/3680429/click-through-a-div-to-underlying-elements – Codelord May 04 '15 at 09:41
-
Check the z-index of the elements... – GreyRoofPigeon May 04 '15 at 09:43
-
Are you saying that you need to access an HTML element which is inside a.– Christo Jose May 04 '15 at 09:48
-
no div is floating above the input element. it an absolutely positioned div. – Karthik May 04 '15 at 09:50
-
Yes i tried z-index,but not working. – Karthik May 04 '15 at 09:51
-
Thank you Codelord i didn't see it. – Karthik May 04 '15 at 09:52
1 Answers
1
Try this:
pointer-events: none;
This will make any mouse event "fall through" the element.
Note: however, that this will be applied to all child elements too, so any element you might want to click (a link or so) will be inaccessible.

Tushar Gupta
- 15,504
- 1
- 29
- 47

Christo Jose
- 325
- 4
- 16