monster.ui.mask()

Syntax

monster.ui.mask(target, type);

Parameters

  • target (mandatory)

Type: jQuery object

Field on which the method will be applied.

  • type (mandatory)

Type: String

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