3
//However without using Function and picking up more than one TEXTAREA
function autoResize()
{
objTextArea = document.getElementById('txtTextArea');
while (objTextArea.scrollHeight > objTextArea.offsetHeight)
{
objTextArea.rows += 1;
}
}
<textarea id="txtTextArea" onkeydown="autoResize()"></textarea>
Unused
function
? explain that– Rafael Augusto
Taking only by the textarea ex: <textarea></<textarea> || without using the Function inside ... I don’t know how to understand ?
– Luciano Ramos
This I understood, but why without using
function
?– Rafael Augusto
because here this textarea is generated automatically, it comes without id and without onkeydown
– Luciano Ramos
And even with the
function
no problem at all– Rafael Augusto
You won’t have a problem
– Luciano Ramos