I understand there has been a lot of discussion on this but I have yet to find a solution to fix my needs. Basically I need to autogrow a text area not when you type but on
You mentioned there are multiple textboxes. This code will set the height of each textarea according to its own contents.
$(document).ready( function( ) { $("textarea").each( function( i, el ) { $(el).height( el.scrollHeight ); }); });
Fiddle here