Possible to bind an event listener to a (hypothetical) onChangeInnerHTML event?

Posted by DustMason on Stack Overflow See other posts from Stack Overflow or by DustMason
Published on 2010-06-09T19:21:30Z Indexed on 2010/06/09 19:32 UTC
Read the original article Hit count: 225

In my app, I have an OL tag whose contents are changed by various other dynamic events. Is there some way to put a listener on that OL so that I can execute a function whenever its contents are altered in any way? In this example I need to update a count of items in the list which appears in another spot in the interface.

I am using jQuery if that helps.

The contents of the OL are being changed with OL.append() and LI.remove(), in case those methods have some special events that I don't know about

Thanks!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery