Try changing 

alertText = alertText + dfr.options[i].text+ ",";

to

alertText = alertText + dfr.options[i].value + ",";

Does that work?

KOla
>> -----Original Message-----
>> From: Robertson-Ravo, Neil (RX) [mailto:Neil.Robertson-
>> [EMAIL PROTECTED]]
>> Sent: 21 February 2003 09:31
>> To: '[EMAIL PROTECTED]'
>> Subject: [ cf-dev ] select reorder > passing values
>> 
>> OK, this function works when you are dealing with the select box text
>> entries, but not when you are dealing with the values? any ideas?  I
cant
>> seem to get it to pass the values of the select menu via a hidden
form
>> field!
>> 
>> 
>> =================================
>> function writeList() {
>> 
>>              alertText = "";
>>              document.
>> 
>>              for (i=0;i<boxLen;i++) {
>>                      alertText = alertText + dfr.options[i].text+
",";
>> 
>>              }
>> 
>>              alert(alertText);
>> 
>>              // copy all the reordered values into the hidden form
field
>>              //document.forms[0].hidden_list.value = alertText;
>> 
>> 
>>      }
>> 
>> --
>> ** Archive:
http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>> 
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> For human help, e-mail: [EMAIL PROTECTED]


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to