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

    Updated: Oct 26, 2024
    Views: 906
    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
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Anoop Kumar

    MemberMay 16, 2012

    var str="1234";
    var strArray=str.split("");
     
    
    now print strArray using indexes... for printing 1 : strArray[0].
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register