Simple Crossbrowser textarea expander
Question
My previously simple textarea expander is now causing problems.
$(document).on('keyup', 'textarea',function(){
$(this).height($(this).prop('scrollHeight'));
});
Works fine on Firefox but on webkit browsers keeps increasing the text-area in size on every key press whether it needs to or now.
Solution
Looks like you're looking for this. http://www.jacklmoore.com/autosize
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow