Link to home
Start Free TrialLog in
Avatar of jcbmtt
jcbmtt

asked on

count number of lines

if i want to populate the number lines in a div, how do i do it using jquery and populate it in the span tag. pl advice.


<span id="count"> 10</span>
<div id="lines">
hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello world hello worldhello world hello world hello world hello world hello world hello world hello worldhello world hello world hello world hello world hello world hello world hello worldhello world hello world hello world hello world hello world hello world hello worldhello world hello world hello world hello world hello world hello world hello worldhello world hello world hello world hello world hello world hello world hello worldhello world hello world hello world hello world hello world hello world hello world
</div>
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

That is only one line.  <br> or <br /> are line breaks in HTML.
ASKER CERTIFIED SOLUTION
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jcbmtt
jcbmtt

ASKER

friends, <br>s are hidden.  what function will help me achieve this?
Is it possible to count it in server side?
did you tried what i suggested?