Say I’m doing something like this:
$('#demo').click(func1);
$('#demo').click(func2);
In Firefox that makes func1() run after func2() but not on IE.
Any ideas?
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.
Binding same event to same element multiple times is not necessary, though it has no problem with jQuery.
Just simply write
If you need to bind click for multiple elements then procedure will be
you can use
.on()for event bind like: