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?
or this
Comments
Post a Comment