stringy = "~1~~12~~13~";
mySplitResult = stringy.split("~");
for(i = 0; i < mySplitResult.length; i++){
document.getElementById('elmID').innerHTML("----" + mySplitResult[i] + " (Remove)" );
<div id=elmID></div>
So, when this runs, it prints : ---- inside of the div,
but i think it should be printing :
----1 (Remove)----12 (Remove)----13 (Remove)
Thats what I need anyway,
Any help would be much appreciated!