0.3.3 • Published 10 years ago

jquery-megamask v0.3.3

Weekly downloads
20
License
MIT
Repository
github
Last release
10 years ago

jquery-megamask

Create input masks.

Plugin that creates masks for your inputs.

Getting started

Install with npm;

Or get the source from src folder.

bower, and jquery packages will come somewhen

Overview

// initialize plugin
$("#my_input").megamask('xxx.999-99-*');

// some time ago
// when we need to get a raw (without mask symbols) value of input
$("#my_input").megamask("getRaw");

// another way
// when we get a default value some time ago
// (by default masks do this on initialization)
$("#my_input").val("abc123123").megamask("refresh");

Options

The signature of plugin calling is:

$element.megamask(String mask, Object [options])

Where mask is a string, representing the mask. Currently available symbols:

SymbolDefinition
9Any number value
xAny character (a-z)
*Any value
0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago