View Single Post
  #7  
Old 02-18-2003, 11:49 AM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default yep

Hey Nico,

yep i got it working but i get errors when i change the ==1 part .Does anyone know what this part is suppose to do?

if (product_option('MEDIA').selectedIndex== 1)
{ alert('You have chose the CD-ROM option'); return true; }

i figured it was the option line number chioce. Example, if i had an option COLORS and on line 1 was red, line 2 green, line 3 blue, i figured i could put the validation to look like this

if (product_option('COLORS').selectedIndex == 3)
{ alert('You have chosen Color Blue'); return true; }

so the 'You have chosen Color Blue' would pop-up, but all i get is an error on the page, any clues would be great, Thanks - snorocket
Reply With Quote