98

imaskjs - vanilla javascript input mask

 6 years ago
source link: https://unmanner.github.io/imaskjs/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Javascript Input Mask

Features

Plugins

RegExp (Russian postal code) /^[1-6]\d{0,5}$/

source
Pattern (Phone) +{7}(000)000-00-00
source
Number in range [-10000, 10000]
source
Date 'dd.mm.yyyy' in range [01.01.1990, 01.01.2020]
source
On-the-fly select phone or email
source
Mask in mask currency input
source
Pipe unmasked → masked
source

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK