I'm writing a simple script for detecting changes in the DOM, and then performing some actions.
I want to achieve something like this:
$('body').on('DOMNodeInserted', '#entry', function() {
// check if inserted element contains text, then run function
})
What is the simplest way of search text on the inserted DOM node?