runswithsizzors
Well-known member
Hey I have a situation where a comment box needs to expand instead of scroll. Is there any way to do that on a web form?
Thank you to all that reply!
Thank you to all that reply!
function resizeCommentsBox(sender)
{
a = sender.value.split('\n');
b = 1;
for (x = 0;x < a.length; x++)
{
if (a[x].length >= sender.cols)
{
b += Math.floor(a[x].length/sender.cols);
}
}
b += a.length;
if (b > sender.rows)
{
sender.rows = b;
}
}