I use jQuery Autosize plugin:
http://www.jacklmoore.com/autosize/
The script itself you can see here:
http://www.jacklmoore.com/js/jquery.autosize.js
This is how I use the script:
jQuery(function($){$(document).ready(function(){
$('textarea').autosize();
}
Problem N 1
Just updated the script to the latest version and it stopped to work:
"TypeError: (intermediate value)(...) is not a function"
Javascript console reports this error on the last line of the script:
}(window.jQuery || window.$));
Problem N 2
Script doesn't work in modal windows (PrettyPhoto) and javascript console doesn't show any errors.
Any ideas?