jQuery delegates with plugins

Posted by Daniil Harik on Stack Overflow See other posts from Stack Overflow or by Daniil Harik
Published on 2010-05-18T14:57:44Z Indexed on 2010/05/18 15:01 UTC
Read the original article Hit count: 376

Filed under:
|
|

Hello,

jQuery delegates are great, especially when using with table row click events.

I was wondering if it's possible to use delegates with plug-ins as well?

For example if I attach elastic plug-in to every text area, I would do:

$("textarea").elastic();

But how would I attach this plug-in using delegate?

© Stack Overflow or respective owner

Related posts about jquery-plugins

Related posts about jQuery