1

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.

itsme
  • 48,972
  • 96
  • 224
  • 345

1 Answers1

1

If you are referring to "on DOM change" events, take a look at these answers:

Community
  • 1
  • 1
Davorin
  • 1,160
  • 15
  • 31