MaskedBox

Extend from $.fn.textbox.defaults. Override defaults with $.fn.maskedbox.defaults.

The maskedbox enforces its structure as the user types.

Dependencies

  • textbox

Usage

Create maskedbox from markup.

Create maskedbox by using javascript.

Properties

The properties extend from textbox, below is the added or overridden properties for maskedbox.

Name Type Description Default
mask string A String representing the current mask.
promptChar string The character used to prompt the user for input. _
masks string The mask rule definition. { '9': '[0-9]', 'a': '[a-zA-Z]', '*': '[0-9a-zA-Z]' }

Events

The events extend from textbox.

Methods

The methods extend from textbox, below is the added methods for maskedbox.

Name Parameter Description
options none Return the options object.
initValue value Initialize the value without triggering the onChnage event.
setValue value Set the component value.