I am wondering how I can style one input field (type = text) to display with spaces and a slash between numbers, like this:
I know how to constrain the input to digits and perform validation. That's not what I'm asking. I'm wondering about the actual display. Can you use CSS to do this somehow, splitting the first two MM digits from the last two YY digits?
I want the user to be able to type 4 digits only and have it display as: MM / YY
(Different question from How to format credit card input fields and expiry date. That question focuses on validation.)