Skip to main content
January 11, 2007
Question

Combo Box Script....can't get it....

  • January 11, 2007
  • 1 reply
  • 172 views
Hi Folks,
I have a combo box within this form I have built...I have a bunch of input text fields and am using PHP to get this info sent to email accounts. I just need some help with setting up the code for the combo box to get that info sent also. The box has three or four items that drop down. I've looked through all the combo box Q&A's and still can't get it. If I could get a bit of help with the script to get the combo box info out and sent with the other info that would be great! All the other info sends perfectly I just can't get the CB to work.
Thanks so much for your help.
This topic has been closed for replies.

1 reply

Participating Frequently
January 11, 2007
var numOfItems:Number=comboBox_cb.length;
var collectItems:Array=[];

for (var i=0;i<numbOfItems;i++){
// this will get the items from the comboBox into an array..
collectItems.push(comboBox_cb.getItemAt(i).label);
}
The above code will get the combo box info for you..

--KM