I’m using jQuery.
How to deal with it easily?
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.
Try this code:
For more information, check out the CSS documentation of jQuery.
Also, for most events you can call
event.targetto get the element generating event.To get current mouse position use
event.pageXandevent.pageY. Note that the event must come from a mouse action:onmousemove,onmouseup,onmousedown,onclick, etc…