Hi All,
I am trying to use the split function to split a string into an array. I then need the array to appear in a list box.
I have the user type a value (\n delimited), I have the split function split the string into an array. I then want the contents of this array to be displayed in a listbox.
The way that I am trying to split the string is as follows;
<form name="eventform"><textarea rows="2" name="S1" cols="20"></textarea>
<script>
var pubishArray = document.eventform.S1.value.split('\n')
</script>
any help or suggestions would be great!
-ejg
I am trying to use the split function to split a string into an array. I then need the array to appear in a list box.
I have the user type a value (\n delimited), I have the split function split the string into an array. I then want the contents of this array to be displayed in a listbox.
The way that I am trying to split the string is as follows;
<form name="eventform"><textarea rows="2" name="S1" cols="20"></textarea>
<script>
var pubishArray = document.eventform.S1.value.split('\n')
</script>
any help or suggestions would be great!
-ejg