This is a jQuery-based, progressively-enhanced solution for creating a single-field credit card input. The idea is to create a more streamlined credit card entry process.
If you enter a CC number that isn't valid, it's not possible to to modify it without deleting the either number. Any attempt to use your keyboard to change the cursor position, simply results in being placed back at the end.
Using the mouse, you can place the cursor elsewhere, but if you delete a number and attempt to type a new one, the new number gets placed at the end of the field.
If you enter a CC number that isn't valid, it's not possible to to modify it without deleting the either number. Any attempt to use your keyboard to change the cursor position, simply results in being placed back at the end.
Using the mouse, you can place the cursor elsewhere, but if you delete a number and attempt to type a new one, the new number gets placed at the end of the field.