I have a textarea which uses a jquery plugin to resize itself while the user types in it.
The problem is, I want users to be able to edit things they’ve already typed. However since the textarea starts with 35 cols, 1 row, if the user had a long message he typed, then it doesn’t completely show, only one line shows which cuts off.
Is there a way to simulate a keypress event in that textarea, so that the text resizing will fire up and resize the textarea?
There’s no way to programatically call the text resize function.
Just trigger the keypress event on that textarea:
if there are multiple textareas, and you want to trigger the event on a specific textarea that has an id, of course the syntax becomes: