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 w
The browser will not fire the onchange event for I think the reasoning behind this is that these elements won't change unless modified by javascript. If you are already having to modify the element yourself (rather than the user doing it), then you can just call the appropriate accompanying code at the same time that you modify the element, like so: You could also manually fire an event like this: If neither of these solutions work for your situation, could you please give more information on what you are specifically trying to accomplish? $("#content").html('something').each(function() { });
$("#content").html('something').change();