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
February 18, 2002
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.
About the Author
You May Also Like