I would like to catch the event when the innerHTML of an element changes due to “ajaxing”.
I mean something like this:
$('.t_error span').html.change(function(){
...
});
Thanks for help!
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.
There is no way to do what you ask – however, instead you can use this construct:
EDIT: If you want to be cleverer, you could use Custom Events:
Basically define a CustomEvent function:
Then you just need to create an instance of the CustomEvent class somewhere:
In your page, subscribe to it:
and in your Ajax call success function, trigger it: