I present you meioMask 1.0.3 - a jQuery plugin for masking inputs.
Plugin page
jQuery meioMask plugin page
I’m going to centralize all the comments at the page of the project, so i’m not allowing comments here but you are free and motivated to comment at the meioMask’s project page
Features
- Accepts paste event;
- Haves fixed and reverse mask types ( allow number mask );
- You can still use your hot keys and others (ex: ctrl+t, ctrl+f5, TAB …);
- Supports metadata plugin;
- Works with iPhone;
- Allow default values;
- Haves callbacks for invalid inputs, valid and overflow;
- Haves function to mask strings;
- Support for positive and negative numbers on reverse masks.
Changelog
v1.0.3
- Callback functions now receive the char number as it second parameter, so it is possible to detect exactly which key has been pressed;
- added the signed masks. It only works with the reverse mask. See demos for more details;
- iPhone support improved. iPhone now works 100% better than the 1.0.2 version. I’ts logic have been changed, and now it’s working with full features.
v1.0.2
- added input callbacks: onInvalid, onValid and onOverflow;
- added support for default values;
- can now be used like $().setMask({});
- added the function $.mask.string(string,mask) that will mask a string (see demos);
- now the value of the input is masked at the time the mask is applyed to it.
v1.0.1
- added support for iphone;
- removed a bug where a fixed char would be replaced by an inputed one.
v1.0
TODO
- Add auto-tab options, so the focus will change to the next input of the form when the user input size is equal to the size of the mask;
- Your suggestion here.
You can see the plugin page here. It contains documentation and examples. Please tell me any bug, new feature, english errors on documentation…. anything! I’ll be glad to hear your feedback and make the fixes. Hope it helps you!
Tags: form, input, iphone, mask, paste, plugin
I present you meioMask 1.0.2 - a jQuery plugin for masking inputs.
Plugin page
I’m going to centralize all the comments at the page of the project, so i’m not allowing comments here but you are free and motivated to comment at the meioMask’s project page.
Plugin official page
Features
- Accepts paste event;
- Haves fixed and reverse mask types ( allow number mask );
- You can still use your hot keys and others (ex: ctrl+t, ctrl+f5, TAB …);
- Supports metadata plugin;
- Works with iPhone;
- Allow default values;
- Haves callbacks for invalid inputs, valid and overflow;
- Haves function to mask strings.
Changelog
v1.0.2
- added input callbacks: onInvalid, onValid and onOverflow;
- added support for default values;
- can now be used like $().setMask({});
- added the function $.mask.string(string,mask) that will mask a string (see demos);
- now the value of the input is masked at the time the mask is applyed to it.
v1.0.1
- added support for iphone;
- removed a bug where a fixed char would be replaced by an inputed one.
v1.0
Some bugs have been fixed too. I’m making a TODO list and i’m really open to add features you guys want.
You can see the plugin page here. It contains documentation and examples. Please tell me any bug, new feature, english errors on documentation…. anything! I’ll be glad to hear your feedback and make the fixes. Hope it helps you!
Tags: form, input, iphone, mask, paste, plugin
I present you meioMask - a jQuery plugin for masking inputs.
Plugin page
Plugin official page
I’ve centralized all the comments at the page of the project, so i’m not allowing comments here but you are free and motivated to comment at the meioMask’s project page.
I was looking for a good masking plugin to use with jQuery or maybe Mootools but haven’t found one that can do what i wanted it to do. I mean like being cross-browser, accept paste event (very important!), have a money mask, like the bank ones…Well here are some of the meioMask’s features:
- Accepts paste event;*
- Haves fixed and reverse mask types ( allow number mask );
- Input focus isn’t lost (if the input is smaller than the mask, focus will follow the caret);**
- You can still use your hot keys and others (ex: ctrl+t, ctrl+f5, TAB …);
- Supports metadata plugin;
* Safari on mac isn’t supported. Paste event for some reason isn’t fired on command+v (right-click paste works). On Mac Firefox it work’s ok.
** Firefox 2 and before aren’t supported.
You can see the plugin page here. It contains documentation and examples. I’ll be making a “projects” page here soon to add the plugins i made.Please tell me any bug, new feature, english errors on documentation…. anything! I’ll be glad to hear your feedback and make the fixes.Hope it helps you!
Tags: input, Javascript, jQuery, mask, paste, plugin