Benjamin Cordier• 60
@benoclock
Posted
Hi Perdo,
You can improve your solution by just adding few HTML attributes :
- I can fill the card number input with too much digits (add a limit to 16)
- I can set the "MM" input with 13, 14, etc. (add a range between 1 and 12)
- I can set the "YY" input with 1492 (add a range from now to next 10 years)
You can find all you need on the MDN Input Doc : https://developer.mozilla.org/fr/docs/Web/HTML/Element/input
Marked as helpful
0