Is there any way to detect in jQuery; whether new row got created in text area while end user is typing continuously in it? I could not set line height, max height of minheight of textarea.
Fiddle: http://jsfiddle.net/5wdzH/113/
Note: Here i am not asking about \n (Enter) but about new Row
enteredText = $( this ).val();
numberOfLineBreaks = (enteredText.match(/\n/g)||[]).length; //When we press enter then only the value comes but not for new row.
Textarea attributes:
$(e).css({'height': 'auto', 'overflow-y': 'hidden'}).height(e.scrollHeight);