Creating an array, help required please...
Hi there,
I've written some code to create a combo box and all works fine in JS debugger.
The values for the combo box are passed in via an array like this:
var aOptions = new Array('Choose an Item','Apple','Pear','Banana','Grape','Orange');I'm now trying to pick up the values from a text field, on a form, and generate the combo box.
I've tried a number of different ways to take the values from the text field and generate separate combo items. The value taken from the text field ends up as one big item.
I've tried splitting down the values from the text field in a number of ways, for example using a comma to separate them, but as yet haven't succeeded in generating separate combo box items.
As mentioned earlier, the code above works fine in the debugger it's when I try to pick up the values from a text field I'm having issues.
Please can someone point me in the right direction.
Thanks in advance.
