How can I get the element that will trigger mouseover, when my code was in a mouseout event.
for example:
A is menu, subA is his sub menu, if user’s mouse out of A but still over subA, then we should not hide menu A.
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.
If you mean what I think you mean, what you want is the
relatedTargetproperty of the event in standards-compliant browsers and thetoElementproperty ofwindow.eventin IE < 9.jQuery normalizes this to the
relatedTargetproperty, so the following will do what you want in all browsers that jQuery supports: