B
bbxrider
i have 2 radio buttons 1 for yes and 1 for no, it is mandatory for one to be
checked, and am purposely leaving both blank on the page
when i tested for .value, when neither was checked, an alert message comes
back with literally 'undetermined',
and i get the message 2x, once for each button
alert("empty prevVolunteer is " + e.value);
i.e, the text in the message box is "empty prevVolunteer undetermined"
i haven't found anything similar to null, true, false, etc for
'undetermined, so i tried slicing it,
alert("empty prevVolunteer is " + e.value.slice(0,2));
and got 'ye' for the yes button and 'no' for the no button
so i'm confused, if the alert returned value is 'undetermined' and yet it
slices to the checked value, when neither has been checked, how do you check
if neither one has been checked
checked, and am purposely leaving both blank on the page
when i tested for .value, when neither was checked, an alert message comes
back with literally 'undetermined',
and i get the message 2x, once for each button
alert("empty prevVolunteer is " + e.value);
i.e, the text in the message box is "empty prevVolunteer undetermined"
i haven't found anything similar to null, true, false, etc for
'undetermined, so i tried slicing it,
alert("empty prevVolunteer is " + e.value.slice(0,2));
and got 'ye' for the yes button and 'no' for the no button
so i'm confused, if the alert returned value is 'undetermined' and yet it
slices to the checked value, when neither has been checked, how do you check
if neither one has been checked