Tag Archives: Mask Input

Mask Input

Input mask provides a general format to text field and enforces its structure as the user typing in values. It provides the user an idea about how they should enter the data. Use set_mask() method to mask any text input.

phpDatabaseForm uses an excellent jQuery Mask Input created by Igor Escobar available distributed under MIT license.

phone_mask

// ... code omitted
$dbForm -> load_form(9);
$dbForm -> redirect_after_submit("http://example.com");
$dbForm -> set_mask("HomePhone", "(000)000-0000", "{placeholder: '(___)__-____'}");
$dbForm -> display();

Live demo

PHP Database Form
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.