[Gllug] JS problem fixed

Adrian McMenamin adrian at mcmen.demon.co.uk
Fri Apr 19 23:52:48 UTC 2002


Code that works is....


    if (document.ticket_order.card_year.selectedIndex == 0) /* ie 2002 */
		    {
		    var right_now = new Date;
		    if (right_now.getMonth() > 
document.ticket_order.card_month.selectedIndex)
		    {
		    alert("Sorry, your credit card appears to have expired. Please check 
the expiry date.");
		    return false;
		    }
		    }
		    }


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list