Is it abuse to put application/business logic inside of jQuery plugins?
- by RenderIn
Is it appropriate to create jQuery plugins which are specific to a single page? I've been creating generic plugins that are not tied to any context and contain no business logic, but some people I've talked to suggest that almost all javascript, including business logic and logic specific to a single page, should be inside of jQuery plugins.
Is it appropriate to have a validateformXYZ plugin which validates a specific HTML form?
I'm buying into jQuery 100% but am not sure if this is a misuse or not.