Bouffe
Bouffe

Reputation: 849

Jquery mask with JQuery 1.10.1

I try to use a very simple mask for input with JQuery :

http://jsfiddle.net/dKRGE/

$("#phone").mask("(99) 9999?9-9999");

But it's work with Jquery 1.7.2, but not with JQuery 1.10.1 (You can change version with left sidebar)

Someone have a idea to solve that ?

Thanks !

Bouffe

Upvotes: 0

Views: 1812

Answers (1)

Tomas Santos
Tomas Santos

Reputation: 550

You are importing an outdated or incorrect version of the jQuery masked input plugin. Please obtain the correct version from the official site. Reference the link below

Digitalbush

Fiddle

<script src="jquery.js" type="text/javascript"></script>
<script src="https://raw.github.com/digitalBush/jquery.maskedinput/1.3.1/dist/jquery.maskedinput.min.js" type="text/javascript"></script>

Upvotes: 1

Related Questions