Tag Archives: mask

set_mask()

set_mask(mixed $col, mixed $mask, string $extra_prop)

Provides a general format to text field and enforce it’s structure as the user types in values.

It gives the user an idea about how they should enter the data.

Parameters

mixed $col
  • Column name
mixed $mask
  • Mask pattern
string $extra_prop
  • Optional. Addition properties e.g. “{placeholder: ‘(_)-____’}”. Note must single quote

phpDatabaseForm uses jQuery Mask Input created by Igor Escobar http://igorescobar.github.io/jQuery-Mask-Plugin/ available under MIT license.