PDA

View Full Version : Combo Box Component help



KickTarBabies
01-19-2007, 12:57 AM
I need help with the combo box component. On this page: http://hellonearthstore.com/newerahat/ there are two combo box components. When you chose the "Hat Size" and "Shirt Size" i need to make it so when you chose the hat and shirt size you want, then click the "Add to cart" button, it will note the hat and shirt size, so it will show up under the "options section in the paypal checkout.

Please help ASAP! Thank you so much in advanced.

NTD
01-19-2007, 06:18 PM
Hi,

The easiest way to do this is to store the currently chosen cbox value in a variable. I dont recall the change options for the cbox off the top of my head but something like onChange....

myCbox.onChange=function(){
_root.myHat=this.getSelectedItem();
}

Then from the add to cart button, just add the variable...

myButton.onRelease=function(){
myHat+mySixe+myAddress+etc...
}