Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

Releases for Masked Input


Masked Input 1.2.2

Bugfixes

  • Fixed bug which blocked apple meta key. This was keeping copy and paste via keyboard shortcut from working on Mac.
  • Fixed bug that caused mask literals to be pushed into the mask placeholder positions when verifying the data.
  • Fixed bug that prevented user input from completing when mask ended in mask literal.

Changes

  • Changed behavior on focus to select all text if focusing on a completed mask.
  • No more masking on readonly inputs.
  • Changed escape behavior to put the input back to the original value instead of just blanking the text.
  • Increased range of accepted characters for input.

Masked Input 1.2.1

  • BREAKING CHANGE: Removed deprecated $.mask.addPlaceholder method. Use the "$.mask.definitions['']="";" syntax instead. I said I was going to do this on the last release and now seems just as good a time as any.
  • BREAKING CHANGE: Removed "allowPartial" option in favor of new mask syntax I'll describe below. A discussion and code exchange with Michael Bray inspired this change. I hate that it's a breaking change, but the new way makes a lot more sense.
  • New mask syntax option '?'. Anything listed after '?' within the mask is considered optional user input. The common example for this is phone number + optional extension. The new syntax will look like this: "(999) 999-9999? x99999"

Masked Input 1.2

  • Paste support for more browsers. It should now work in IE7, Firefox 3, Safari, Chrome, and Opera.
  • Fixed backspace bug in Opera. I had originally put in special handling for Opera to get past a bug that appears to be fixed in current releases. This code is now removed.
  • Calling .mask() with no arguments will now return the value of the input without the literals.
  • Added option "allowPartial" that will allow partial input to remain when focus is lost.
  • Exposed the hash table of the mask definitions directly to replace the $.mask.addPlaceholder() method. The old method remains for now, but will be removed in a future relase. You should now add custom mask definitions by "$.mask.definitions[char]=regex;"
  • Code refactoring and house cleaning. I made things more jQuery like and removed some crufty code in the process. The end result is better organization to build on for future enhancements.

Masked Input 1.1.4

Fixed a bug that would occur when the mask characters match the criteria of the first placeholder character(s). The mask characters would end up repeated as user input.

Masked Input 1.1.3

Fixed a bug where the buffer wasn’t being cleared properly, causing characters that had been shifted to be duplicated.

Masked Input 1.1.2

  • Fixed a bug in Mac Firefox with backspacing.
  • Fixed a bug where delete at end of mask produced an extra
    placeholder character.
  • Exposed the caret positioning and retrieval methods as a jQuery
    function extension. You can now call $().caret() to get a caret
    position and $().caret(start [,end]) to set a caret position.

Masked Input 1.1.1

* NEW FEATURE: unmask() method to remove masking for a previously masked input.
* Safari cursor position fix.
* Cursor position behavior change: Cursor goes to the end of the input on a completed input. Cursor goes to the first placeholder position on a blank input.
* Fixed improper escaping of certain mask characters.
* Code refactoring to reduce size and complexity.

Masked Input 1.0.0

This release just has some minor cosmetic code changes.

Masked Input 1.0.0

This release just has some minor cosmetic code changes.

Masked Input 0.5.0-rc3

  • BREAKING CHANGE: The mask function has been changed to more closely match the style of the jQuery library. Instead of calling .maskedinput(), you will need to call .mask(). Additionally the .AddMaskDefinition() has been moved to a namespace and renamed. Instead, you should make a call to .mask.addPlaceholder().
  • Fixed a bug where the buffer was wiped when text was selected and a non-typeable character was pressed.
  • Fixed a bug where the buffer was not cleared, but the text was when pressing the escape key.
  • More code cleanup.

Masked Input 0.4.0-rc2

  • Now supports user defined placeholder characters by calling “$.AddMaskDefinition(char,regex)” .
  • Fixed a bug where backspace from the first character position deleted the mask.
  • General code cleanup.

Masked Input 0.3.1-rc1a

  • Corrected the kludgey syntax for the optional mask completed function. You no longer need to pass an argument to your function to gain access to the input making the call. You can now simply reference “this”. Please see the above corrected example.

Masked Input 0.3.0-rc1

* Fixed a Safari issue where backspace deleted wrong characters and messed up cursor position.
* Fixed an issue where pre-filled input (value=”something”) was deleted on focus.

Masked Input 0.2.2

  • Fixed an issue with the mask disappearing on focus when the input box has no data.