This is the code. When I click on the checkbox it returns an alert but when I click OK the check in the checkbox remains, I want it to return unchecked. can anyone help? with thanks.
function GetSelectedButton(ButtonGroup)
{
for (var x=0; x < ButtonGroup.length; x++)
if (ButtonGroup[x].checked) return x
return 0
}
function Grade1(){
var i = GetSelectedButton(f1.C)
if (f1.C.value == "1" {
alert ("'Congratulations' You're correct !!!."
return false
}
else {
alert ("Sorry you're not correct"
return (false);
}
}
function GetSelectedButton(ButtonGroup)
{
for (var x=0; x < ButtonGroup.length; x++)
if (ButtonGroup[x].checked) return x
return 0
}
function Grade1(){
var i = GetSelectedButton(f1.C)
if (f1.C.value == "1" {
alert ("'Congratulations' You're correct !!!."
return false
}
else {
alert ("Sorry you're not correct"
return (false);
}
}