Hello
I create a radio group with 2 values: YES and NO. I need to take the value of the checked radio in order to verify that the correct one is selected.
But I miss something as it is not working:
I create this script:
function ff_autorisation_yes (element, value)
{
var value_autorisation=ff_checkedValue(element.value);
if (value_autorisation == 'NO')
{
if (message=='') message = element.name+" need to be YES.\n";
ff_validationFocus(element.name);
return message;
} // if
return '';
}
I use ff_checkedValue as it mention "Get value of the currently checked radiobutton.".
I think, I miss something in the if but I don't see which part ...
Could someone help me?
Thank you in advance