DHTML Behaviors Library : Mask Behavior

Description: The mask edit behavior is applied to INPUT elements that allow data entry to provide a combination of restricted input as well as formatted output. When information is entered, visual cue

ITPro Today

February 18, 2002

1 Min Read
ITPro Today logo in a gray background | ITPro Today

Description: The mask edit behavior is applied to INPUT elements that allow data entry to provide a combination of restricted input as well as formatted output. When information is entered, visual cues are provided about the type of acceptable information, and feedback about incorrect entries. The behavior can be applied to many common types of forms fields, such as date, time, monetary, percentage and phone number formats. These masks can be applied through one of several preset formats.

Browser/Platform Compatibility
This sample is supported in Internet Explorer 5, on Win32 and Unix platforms. Any browser that doesn't support behaviors will ignore them.

Usage
The Mask behavior is useful for FORMS submission, or for formatting data in a table.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like