jQuery watch for domElement changes?

前端 未结 4 2244
囚心锁ツ
囚心锁ツ 2020-12-02 18:31

I have an ajax callback which injects html markup into a footer div.

What I can\'t figure out is how to create a way to monitor the div for when it\'s contents chang

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-02 19:10

    You might want to look into the DOMNodeInserted event for Firefox/Opera/Safari and the onpropertychange event for IE. It probably wouldn't be too hard to utilize these events but it might be a little hack-ish. Here is some javascript event documentation: http://help.dottoro.com/larrqqck.php

提交回复
热议问题