I have a credit card payment form on my website that needs to have a .js alert validation for the credit card expiry date fields (expiry MM/YY).
I would like the validation to be in the form of a .js alert which doesn't allow the form to be submitted unless the expiry month and expiry year are selected, and are not in the past (ie January 2007 should be alerted as an invalid expiry date).
The default (selected) options for the month and year should be "Expiry Month" and "Expiry Year".
The other form fields already have validation in place, so obviously you will need to ensure the new validation works with the existing code.
Thanks for looking.