I need to make a textarea grow automatically (in height) as the user entry flows over to a new line...
Actually I got this working well, only when ENTER is hit (I made use of the total number of \r\n in the textarea content, and setting the textarea ROWS attribute to this), but am at a loss implementing this for the situation when the text WRAPS by itself (ie with long text lines). The problem is that a long phrase may actually occupy 3 lines visually, but is counted as only one \r\n, leading to partially hidden text and overflow scroll situation.
Any help is highly welcome