detect div content changes with jquery
        Posted  
        
            by Elzo Valugi
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Elzo Valugi
        
        
        
        Published on 2009-07-07T10:57:35Z
        Indexed on 
            2010/03/23
            14:03 UTC
        
        
        Read the original article
        Hit count: 665
        
change() function works and detects changes on form elements, but can I have a way of detecting when a html content was changed?
This is not working, unless #content is an input fields
$("#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?
© Stack Overflow or respective owner