I’m developing a jquery plugin and I’d like to allow a programmatic creation and unobstrusive creation (for instance: automatically create plugin for elements with a specific css class´)
I have some ideas how to implement this but I wonder if there is any “good practice” or pattern available to check. I’d like to follow a recommended approach if any in particular.
here is a nice write-up…
also consider examining jquerymobile