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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: