-
I have the following function:
function getCCtype(radiogroup) {
var cctype = '';
var x = radiogroup.length;
for (var i = 0; x > i; i ++) {
if (radiogroup[i].)checked {
// "Expected Identifier" error here
return radiogroup[i].value;
}
}
return '';
}
It is called like this:
cctype = getCCType(obj.elements.paymenttype);
But I keep getting the error shown
above on the line noted.
Anybody have any clues?
-
That is because you have a line like this:
if (radiogroup[i].)checked {
and it should read:
if (radiogroup[i].checked) {
Your closing parentheses is in the wrong place.
------------------
Wayne Luke
Internet Media Provider
-
Nope, I found that one and I still get the error.