Get new jQuery plugins just once a week



November 27, 2013

Format user input to match a specified pattern

formatter-js is a jQuery plugin that formats user input to match a specified pattern because it is useful to format user input as they type. Existing libraries lacked proper functionality / flexibility. Formatter was built from the ground up with no dependencies.

You can use any String representing the pattern of your formatted input. User input areas begin with {{ and end with }}. For example, a phone number may be represented: ({{999}}) {{999}}-{{999}}. You can specify numbers, letters, or numbers and letters.

Example Code :-

'pattern': '{{999}}-{{999}}-{{999}}-{{9999}}',
'persistent': true

Created by Jarid Margolin



formatter-js jquery plugin

input patterns


Related posts:

Power PWchecker
formatter-js jquery plugin

jQuery plugin

Sign up for our weekly newsletter.

* We won't spam you ever
Couple Gift Ideas