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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -