I’ve got a ‘layer’ that I want to give an onclick. The trick is that I want elements on above layers to not execute that action when clicked.
How can I make this happen?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Invoke event.stopPropagation() to prevent “bubbling”. Or, as mentioned above, change parental relationship for absolute positioned element.