This component adds a License Plate Mask to a text input. It validates the input according to the Portuguese standards for license plates.
The component supports the following formats:
The component does not accept the following formats:
The component has an input element and two events: OnChange and OnBlur.
The component does not use any external libraries. The JavaScript code was written from scratch.
To use the component, you just need to add it to your form and assign the variables and actions that you want to use with the mask. You can also check out the demo to see how it works.
I welcome any feedback, suggestions or improvements.
I hope you find this component useful.
Thank you. :)