Page 1 of 1

Count the lines

Posted: Wed Aug 08, 2007 12:13 am
by rash28
Hi,

How to count the lines in the $tool in javascript.
$tool=" Name:------------<br>
Age:
";

Is there any way to count the lines in $tool.

Posted: Wed Aug 08, 2007 10:09 am
by pickle
If it's formatted like that, you could count the occurrences of '<br>'