I’m not sure, but it seems like a bug.
Here are samples:
Maybe i’m doing something wrong?
Any solution for this?
Thanks 😉
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.
Have you read the documentation?
.live()[docs] binds the event handlers to the document root. You can even see this in the order of the logs you get:The event handler at the
divis executed before the live handler for theaelement.If you have to use
.live(), then the only way to solve this would be to also bind the event the event handler to thedivwith.live():DEMO
If you don’t have to use
.live(), then just bind the handler to theaelement in the normal way, using.click()[docs] or.bind()[docs].