I am trying to reset the contents and height of an auto resizing textarea element.
My attempts so far include:
document.getElementById('textarea').value = '';
As well as:
document.getElementById('textarea').attribute('rows','1');
Unfortunately, neither of these methods have been successful for me.
UPDATE :
I am using autosize.js with the following setup:
<textarea id="post" rows="1" title="Write something..." name="posttxt" placeholder="Write something..." role="textbox" autocomplete="off"></textarea>