I am using the following script to populate a drop-down list:
var myDdl = new Array(" ",
"Item1 ",
"Item2 ",
"Item3 ");
function populateMyDdl(dropdownField)
{
var i;
for (i=0; i < myDdl .length; i++)
dropdownField.addItem(myDdl [i]);
)
The drop-down list is populated just fine, but now I would like to add values to the items. What's the proper syntax to give " " a rawValue of 0, Item1 a rawValue of 1, etc...?
Any help is greatly appreciated.
Thanks,
J