I have a textarea (auto resizing) and I want to clear all of its contents including its height.
So far I\'ve tried:
document.getElementById(\'textare
You could use setAttribute to reset style attribute added automatically during the resize :
setAttribute
style
document.getElementById('reset').onclick = function(){ var textarea = document.getElementById('target'); textarea.setAttribute('style',''); textarea.value = ""; }
Reset