Reputation: 49813
Is there anyway to bind a function to the document/window without using events or setInterval/timeout ?
i mean i would like to bind function like :
$(document).bind(function(){
//if element changed class remove element
});
maybe it's a stupid question but i would like to not use loops over element.
Upvotes: 1
Views: 1077
Reputation: 1204
If you are referring to "on DOM change" events, take a look at these answers:
Upvotes: 1