Jquery elastic height change
Posted by Sayan Guharoy
I needed the default or intial jquery elastic textarea height to be smaller than what it is.I tried few option myself and bit of googling helped me to discover this tweak. With this tweak you will be able to set any intial height to your textarea.
First open up jquery.elastic.source.js and edit the following places.Alternatively you can use already tweaked example that i demonstrated in the above jsfiddle.
1.Got lineHeight and set it to zero. 2.Then alter the numerics entered in the parse int to any desired height you want
minheight = parseInt($textarea.css('height'),5) || lineHeight*3,