Okay, I'm making a simple form for orders. Users input info, I make sure they entered everything I want, the way I want, and it emails the results to them and me.
Everything worked until I added in radio buttons. Having trouble at the verification stage.
I have
...the buttons in a form...
<input name="theName" type="radio" value="value1" checked/> Value 1
<input name="theName" type="radio" value="value2" checked/> Value 2
<input name="theName" type="radio" value="value3" checked/> Value 3
... then the verification bit...
if(document.form.theName.value!="value1")
{[do something]}
But it keeps doing the [do something] part.
I also tried if(document.form.theName.value.checked != "value1")
And I tried both ways with == instead of != and switching stuff around.
It's probably something really stupid that I'm missing...