DOMSubtreeModified WordPress

I am willing to detect text change in a div using jquery. Can anyone guide me how to use DOMSubtreeModified in wordpress.

Something like this:

$("body").on('DOMSubtreeModified', "txtdiv", function() {
    alert("changed");
});

Read more here: DOMSubtreeModified WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *