Page 1 of 1

jQuery elastic plugin

Posted: Mon Aug 11, 2014 12:37 pm
by Terry Gilliver

I am using the jquery elastic plugin so that my textarea stretches to the size of data from the database.

It doesn't quite work as well as I wanted, the text area doesn't resize until a) something is typed in the text area or b) change the screen size in the test environment.

I am thinking may be something could be added to the javascript to kickstart the elastic functionality?


jQuery elastic plugin

Posted: Mon Aug 11, 2014 12:56 pm
by Evgene Karachevtsev

Hello Terry,

Yes, it may be, please look at the elastic plugin forums.


jQuery elastic plugin

Posted: Mon Aug 11, 2014 6:45 pm
by Terry Gilliver

I have a workaround from the jquery forum. adding
$('textarea').trigger('change');
into the service success event fixes the issue.


jQuery elastic plugin

Posted: Mon Aug 11, 2014 7:55 pm
by Kateryna Grynko

Hi Terry,

Thank you for sharing this!


jQuery elastic plugin

Posted: Sat Jan 31, 2015 9:27 pm
by Bruce Stuart

Terry - thanks for posting this here. I had occasion to need to use the elastic plugin. Very surprised about how easily it installed (no syntax or other issues like with other plugins I've worked with)..... and attaching it to the textarea with Appery('text_areaname').elastic() was super easy - and your hint above - to add the trigger('change') saved me a lot of extra time.

Thanks for sharing - I literally was able to implement this plugin - in two apps that needed it - in under 15 minutes.... lifesaver.