Click here to Skip to main content
15,909,242 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello All,

Can you please let me know the how to split the paragraph in a line

here is the paragraph like


Shipping Instructions ::: Section 1,Weight needs to be verified > 25
Small box , medium box.
Section = 2 --- &$
Section = 3
End of Instructions.


i have write the code like

var desc = desc.split('/n');


but i am getting only one line, thanks in advance.


Thanks,
Posted
Comments
PIEBALDconsult 8-Jan-15 23:35pm    
I assume you mean \n
Ganesh_mca 8-Jan-15 23:50pm    
yes ..sorry

1 solution

Why trying Javascript programming not knowing HTML. In HTML mark-up, "\n" is no different from blankspace. Paragraphs are marked with <p>, line breaks — with <br/>. You could see it even on CodeProject posts…

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900