I have a textbox (I usually call it like this:
document.forms[0].text.value
a,b,c,d,e,f,g,etc
a
b
c
d
e
f
g
etc
split()
st.split(",") + "<br />";
Either:
st.split(",").join("\n");
or:
st.replace(/,/g,"\n");
Since you're putting it in a textarea, by the look of things, you need newlines, not BR tags.