i fixed it!! the correct line is:
if ((document.basketform.ccexp.selectedIndex == 0) && (document.basketform.year.selectedIndex == 0)) {
rc=alert('Your Card has Expired!');
return false;
Thanks for the help guys. I did catch the double (()) right after I posted and it still didn't work. In fact, if I leave it in my page, it screws up my other javascript shopping cart. The page is checkout page of www.venueports.com .
Is it ok to have the '01' like it is or do I have to refer...
I have 2 list boxes (month, year) for a credit card expiration date. I want a simple if..then statement to check if the card is expired. Here is what I have now:
if (document.basketform.ccexp.options[document.basketform.ccexp.selectedIndex].value == '01') &&...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.