Input Card Number

Mask the value of the input to be formatted like a card number with the x-mask Alpine JS plugin.

This uses the official Alpine JS x-mask plugin.

Example

Code