Create a page which allows a user to enter a credit card number and expiry date into a text field. When the user clicks a button, the page should check if the credit card number and expiry date is valid. A valid credit card number has 16 digits. A expiry date is valid if it has a 2 digit month followed by a 2 digit year. The month must be between 01 and 12 and the month and year must be greater than now.
Hint:
var d = new Date();
alert(d.getFullYear()); //displays 2012
alert(d.getMonth()); //displays the month number where january is 0 and december is 11
please anyone help me??
Credit Card Validator
Page 1 of 12 Replies - 304 Views - Last Post: 03 September 2012 - 05:19 AM
Replies To: Credit Card Validator
#2
Re: Credit Card Validator
Posted 03 September 2012 - 03:42 AM
Stop duplicating your thread and pay attention to what's being posted in your original.
#3
Re: Credit Card Validator
Posted 03 September 2012 - 05:19 AM
Please avoid duplicate posting.
Page 1 of 1
|
|

New Topic/Question
This topic is locked


MultiQuote






|