Slow JQuery input plugin not working on IE7

I am using the jQuery Masked input plugin http://digitalbush.com/projects/masked-input-plugin/

According to the change, it should support IE7

When when trying to use it in IE7 this does not work, and I get the following error in IE debugger

The object does not support the property or method 'mask'

My code is:

$("#" + "someid").mask(someformat); 

The same code works in all other browsers including IE8 and higher.

+4
source share
2 answers

For IE7, try using version 1.2.2 of the nested input https://zk-sample-code.googlecode.com/svn-history/r27/trunk/WebContent/samples/sam/inputbox/js/jquery.maskedinput-1.2.2. js

 $(function () { $("[name='in1']").mask("99/99/9999"); $("[name='in2']").mask("99-99-99"); }); 

example: http://jsfiddle.net/ishubin/aVwpn/

+3
source

Error in jquery.maskedinput.js script!

Now:

 $.mask = { //Predefined character definitions definitions: { '9': "[0-9]", 'a': "[A-Za-z]", '*': "[A-Za-z0-9]" }, dataName: "rawMaskFn", placeholder: '_', }; 

necessary:

 $.mask = { //Predefined character definitions definitions: { '9': "[0-9]", 'a': "[A-Za-z]", '*': "[A-Za-z0-9]" }, dataName: "rawMaskFn", placeholder: '_' }; 

work on IE7!

+2
source

All Articles