Hi,
I am trying to use this function to validate and I get an error because the name starts with an exclamation and has a space(which are required conventions for my shopping cart)
I tried quotation marks with no luck and have tried researching but cannot find a remedy. Any input is greatly appreciated.
function validatechoice(frmname){
if(frmname.!SKU0002 Flavor1.value=="None"){
alert( "Please choose a flavor")
frmname.!SKU0002 Flavor1.focus()
return false
}
return true
}
...................................
<select name="!SKU0002 Flavor1">
<option selected value=http://www.webdeveloper.com/forum/archive/index.php/"None">Choose Flavor</option>
<option value="BBQ">BBQ</option>
<option value="Honey BBQ">Honey BBQ</option>
<option value="Spicy BBQ">Spicy BBQ</option>
</select>
I am trying to use this function to validate and I get an error because the name starts with an exclamation and has a space(which are required conventions for my shopping cart)
I tried quotation marks with no luck and have tried researching but cannot find a remedy. Any input is greatly appreciated.
function validatechoice(frmname){
if(frmname.!SKU0002 Flavor1.value=="None"){
alert( "Please choose a flavor")
frmname.!SKU0002 Flavor1.focus()
return false
}
return true
}
...................................
<select name="!SKU0002 Flavor1">
<option selected value=http://www.webdeveloper.com/forum/archive/index.php/"None">Choose Flavor</option>
<option value="BBQ">BBQ</option>
<option value="Honey BBQ">Honey BBQ</option>
<option value="Spicy BBQ">Spicy BBQ</option>
</select>