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
  • 47,321
  • 93
  • 214
  • 341

1 Answers1

1

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

Community
  • 1
  • 1
Davorin
  • 1,130
  • 14
  • 30