faqts : Computers : Programming : Languages : JavaScript : Forms : TextAreas/TextFields

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 15 people (53%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How can I get the number of rows in a textarea (can work only in IE 5.0)?

Oct 23rd, 2001 03:32
vempati suresh, Rene Naplava,


<html>
<head>
<script>
function noOfRows()
{
alert(document.forms[0].TA.rows)
}
</script>
</head>
<body onLoad="noOfRows()">
<form>
<textArea name="TA" rows="10"></textArea>
</form>
</body>
</html>