Pages UI
Search…
Pages UI
v5.0.1 - Pages HTML
Getting Started
Introduction
Layouts
Themes
Sass
Content
Apps
Calendar
Social
Email
API Reference
UI Elements
Color
Typopgrahy
Icons
Buttons
Notifications
Modals
Progressbar
Collapse
Tabs
Sliders
Treeview
Nestable
Form Elements
Checkboxes and Radio
Toggle
Typehead
Selectbox
Datepicker
Masked Input
Autonumeric
Quill Editor
Tags Input
File Upload
Form Layouts
Form Validation
Form Wizard
Charts
Maps
Google Maps
Vector Maps
Tables
Cards
Timeline
Views
Grid
Helpers
Troubleshooting
Browser Support
Change log
Legacy Docs
Other
Grunt
Gulp
Rails
Powered By
GitBook
Masked Input
Allows the user to enter fixed width input while conforming to a character format. Powered by
jQuery Masked Input
plugin.
Please refer to
jQuery Masked Input Documentation
to learn about plugin options
Step one
Include the javascript file inside the
<body>
before core template script inclusions, if it's not there already.
1
<
script
src
=
"
assets/plugins/jquery-inputmask/jquery.inputmask.min.js
"
type
=
"
text/javascript
"
>
Copied!
Step two
Add the markup.
1
<
input
type
=
"
text
"
id
=
"
phone
"
class
=
"
form-control
"
>
Copied!
Step three
Apply the plugin.
Make sure you place the following script
below
all the pre-requisites mentioned in the Step two above.
1
<
script
>
2
$
(
document
).
ready
(
function
()
{
3
$
(
"#phone"
).
mask
(
"(999) 999-9999"
);
4
});
5
</
script
>
Copied!
Form Elements - Previous
Datepicker
Next - Form Elements
Autonumeric
Last modified
2yr ago
Copy link