function isValidCard(num, isVisa, isMaster, name, mon, year) {
if ((document.getElementById('radioVisa').checked == true) ||
(document.getElementById('radioMaster').checked == true) &&
(document.getElementById('isValidCardNumberArg').value == true) &&
(document.getElementById('isValidCardHolderArg').value == true) &&
(document.getElementById('isValidExpireMonArg').value == true) &&
(document.getElementById('isValidExpireYearArg').value == true)) {
return true;
} else {
return false;
}
I need to verify all the functons in this last function. If all the script sections return true, then isValidCard returns true. The above script is working for the Visa but not if the mastercard is selected..If mastercard returns true, then I am still getting a false in this function. I am not even sure if this is the right way to do this, it just made sence to me..... Any advise appreciated . Thanks Jane