Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a enter callback #7

Open
fabienlege opened this issue Apr 4, 2014 · 2 comments
Open

Add a enter callback #7

fabienlege opened this issue Apr 4, 2014 · 2 comments

Comments

@fabienlege
Copy link

I need to launch a jquery plugin on the textarea added by this plugin. How can i access to the jquery-editable textarea ?
I want to maque this :
$('#jquery-editable-textare').autosizetextarea();
but it doesn't work because textarea are added after load of my page.
How can i do this ?
Thinks

@aletson
Copy link

aletson commented Apr 8, 2014

Maybe $('#jquery-editable-textare').on('autosizetextarea', function() { }); ? Try that and let me know how that works. The .on() handler should work in your case.

http://api.jquery.com/on/

@victorjonsson
Copy link
Owner

I think the right way would be:

$('#some-element').on('edit', function(evt, $textArea) { 
   $textArea.autosizetextarea(); 
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants