Does anyone know the equivalent of this event in IE ?
Or may be a way around for this logic:
document.addEventListener("DOMSubtreeModified", function (e) {
if ($(e.target).hasClass("myclass")) {
var getId= e.target.id;
}
}, false)
This works fine in FF, Chrome, Safari, IE 9 or higher.
Need an equivalent logic for IE8 and IE7
I had a similar problem (though I was using jQuery). I solved it by using the following
//chrome / ff
$(".myClass").on("DOMSubtreeModified", function() {
//do stuff
});
//i.e.
$(".myClass").on("propertychange", function() {
//do same stuff
});
This can be further combined into a single event listener
$('.myClass').on('DOMSubtreeModified propertychange', function() {
// do stuff
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With