You can use the code from here http://quiiver.appspot.com/method_observer_for_jquery
and use it like
$('#test').bind('text' // the method's name used to change the text
, function(){
alert("Paragraph changed");
})
DEMO However, it works only for modifications done through jQuery.