3 ms·
Ah, I didn't notice the demo. That is actually pretty nice. If only they would do the same with the credit card number field and spaces. Edit: okay seems like
by provemewrong 11y ago
Ah, I didn't notice the demo. That is actually pretty nice. If only they would do the same with the credit card number field and spaces.
Edit: okay seems like it is more thought out than I assumed.
- grkvlt 11y agoThey do exactly that! However it depends on the type of card, so if you just start typing '1234567' it is not a valid card number and is unformtted. Try entering something that starts '42' (for a Visa debit card) and it will be formatted as such, in four groups of four digits. They also recognise AMEX cards and format appropriately, try '345612346712348' for example.
- insin 11y agoThey do, but only when the number you're entering is recognised as one of the expected formats. If you type 1234, you'll see the space being added, but it's then stripped again with the next digit you input. If you hold down 4 or type 3 then hold down 4, the spaces will be added. Things get fun if you try to go back and edit the number, though. Forms are hell :)