jQuery - How to write a plugin that will automatically call on future elements -


a simple plugin

jquery.fn.cleanhouse = function() {     //do stuff }  $('.dirty').cleanhouse(); 

how can make sure future elements $('.dirty') automatically call cleanhouse() ?

i'm looking solution plugin itself

is jquery's live() function need?

http://api.jquery.com/live/

or this

jquery - fire event if css class changed


Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -