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 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.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish