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

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

  • Anoop Kumar
    Anoop Kumar
    var str="1234";
    var strArray=str.split("");
     
    
    now print strArray using indexes... for printing 1 : strArray[0].

You are reading an archived discussion.

Related Posts

Hi everyone, I generally come across Random Vibration analysis in my work, but I dont know the basic concept of Random vibration.Please can anyone briefly fill me about it?....Thanks
It has begun and has found root in the medical industry. This reminded me of Dr. Octatvious from spiderman. Read the article here: https://www.bloomberg.com/news/2012-05-16/robotic-arms-allow-paralyzed-patients-to-grasp-objects.html Can you think of uses outside...
Hello all, I'm new here. I graduated in 2008 from the University of Wisconsin Platteville with a degree in Electrical Engineering and an emphasis in Analog/Communication, Digital Electronics, and Controls,...
I'm currently travelling around the Philippines visiting fair trade with there request of trying to make some of their processes more efficient. The latest company which makes hand made paper...
Can any help me with this problem how to store the information into a rfid tag chip whether it may be active or passive tag.. And i want to know...