I have the credit card expiring text field that user able to type in 4 digit but i want to automatically format user input 4 digits to last 2 digits.
So, if user input 2022, i want automatically changed to last two digits "22". I have try the maxlength 2 in html input but that doesn't work out for me.
This is try format the input 4 digits to 2 digits.