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?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…