change()
function works and detects changes on form elements, but is there a way of detecting when a DOM element's content was changed?
This does not work, unless #content
is a form element
$("#content").change( function(){
// do something
});
I want this to trigger when doing something like:
$("#content").html('something');
Also html()
or append()
function don't have a callback.
Any suggestions?