product options
I have a product for men's shirts
I added an option called "color"
and the option list is
- Select a Color
- Blue
- Red
-Yellow
then i tryed to add exception to disable first selection
if (product_option('color').selectedIndex == 1)
{ alert('You have not chosen a color'); return false; }
but nothing happens???
where did i go wrong?
|