I have a dynamic drop down list populated by a javascript array<br /><br />jsColorData - Variable (Contents Below)<br /><br />function getColors(colorField){<br /> for(var a=0;a<colorArray.length;a++){<br /> colorField.addItem(colorArray[a][1]);<br /> }<br />}<br /><br />var colorArray = new Array(<br />new Array("1", "Red"),<br />new Array("2", "Green"),<br />new Array("3", "Blue")<br />);<br /><br />Color Dropdown List - Initialize event<br />jsColorData.getColors(this);<br /><br />//All of the above works! But I need the form output to have the key and not the value.<br /><br /><?xml version="1.0" encoding="UTF-8" ?> <br /><form1><br /><pg1><br /><Color>Blue</Color> //I need the value here to be "3" instead of "Blue"<br /></pg1><br /></form1><br /><br />Is there a function or someway to get my desired result?