string need to displayed in new lines rather than displaying in a single line

bhaskarreddy006

bhaskarreddy006

@bhaskarreddy006-LEB19M Oct 26, 2024

HI all,

i need javascript or jsp page where i have string recived from some sources say
"1234"
now i need display in html page as
1
2
3
4

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Anoop Kumar

    Anoop Kumar

    @anoop-kumar-GDGRCn May 16, 2012

    var str="1234";
    var strArray=str.split("");
     
    

    now print strArray using indexes... for printing 1 : strArray[0].