This script uses unobtrusive JavaScript to implement “input masks.” The maximum field length is automatically limited to the length of the mask. The characters that are entered into the fields are constrained, and separators are automatically added.
Forms
dFilter
This script will easily allow you to add an input mask to a textbox. The mask for a phone number could look like this for example “(###) ###-####”. Just give it a try to see it in action!
Country State City Drop Down List
This is a simple international country, state, and city drop down list that automatically repopulates the state section based on the country selected, and automatically repopulates the city section based on the state selected. All of this is done without reloading the page.
onMouseOver Button
When a user moves the mouse over the button, it will change text. When the mouse is moved away, the text will change back. Perfect for adding short instructions on a submit button.
Virtual Keyboard Interface
This script is a reusable system for adding a graphical keyboard interface to text fields, password fields, and textareas so they can be filled with mouse only.