Hi all,
I am trying to append a string with some more string data. This sounds simple, but I am unable to do it.
This is what i am trying to do:
However this doesnt work. Can somebody help me understand why ?Code:<script> for(var i = 0; i<10;i++){ appendString += "This is number "+i+"<BR>"; } document.write(appendString); </script> I want my output to be, This is number 1 This is number 2 This is number 3 . . .



Reply With Quote
Bookmarks