How to auto bind plugin initializations for content loaded through ajax

Posted by Allen Bargi on Stack Overflow See other posts from Stack Overflow or by Allen Bargi
Published on 2010-04-06T17:04:09Z Indexed on 2010/04/06 18:13 UTC
Read the original article Hit count: 280

Filed under:
|
|

I'm using expandable plugin by Brandon Aaron to auto grow my textareas in the form and it is working ok. the problem is that I'm loading a lot of pages through ajax so I need to rebind the plugin method to the textareas loaded through ajax.

is there a way to do this kind of method calls like

$("textarea").expandable();

through live() or delegate() in jQuery. it'll make my code much cleaner.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about live