I have a set of 2 radio buttons with values "a" and "b"
(ie <input type="radio" name="foo" value="a"> etc etc)
Now I have a javascript function which takes that radio button foo and does a
if (foo.value =="a")
//do this
else if (foo.value == "b")
//do this
the problem is those comparisons are not working and it never gets to either codepath. I tried setting the values to numbers instead of strings..I tried sending in foo.value into the javascript function instead of sending in foo and getting value there.....nothing works...any ideas?
(ie <input type="radio" name="foo" value="a"> etc etc)
Now I have a javascript function which takes that radio button foo and does a
if (foo.value =="a")
//do this
else if (foo.value == "b")
//do this
the problem is those comparisons are not working and it never gets to either codepath. I tried setting the values to numbers instead of strings..I tried sending in foo.value into the javascript function instead of sending in foo and getting value there.....nothing works...any ideas?