monster.ui.mask()

Syntax

monster.ui.mask(target, type);

Parameters

target: jQuery object (mandatory)

Field on which the method will be applied.

type: String (mandatory)

Type of mask to choose from. Available options: 'phoneNumber' (optional + followed by digits), 'macAddress' (12 hexa decimal characters), 'extension' (only digits).

Description

This helper uses the mask jQuery plug-in that forces the users to input only the selected characters. Documentation available: https://igorescobar.github.io/jQuery-Mask-Plugin/

Edit this page here