1.0.1 • Published 6 years ago

jquery-mobilepassword v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

jquery.mobilePassword.js

####Description This is a jQuery plugin that make your password input field like mobile client interaction. We can see the last letter. 这个插件使密码输入框像移动客户端那样输入,可以明文显示最后一个字符。

支持粘贴密码,删除任何一个字符

enter image description here

  • require jQuery1.4+
  • support IE6+

How to use

$(document).ready(function() {
  $("input[type=password]").mobilePassword();
});

#####The following are the possible options:

$(document).ready(function() {
  $("input[type=password]").mobilePassword{
    checkInterval: 200, //set timeout to check whether all the characters are the same
    transDelay: 500,    //delay to transform last letter
    character: '%u25CF' //instead of the character
  };
});

Tip: Unicode for the symbol that will be displayed,You can find a good overview here: http://www.fileformat.info/format/w3c/entitytest.htm?sort=Unicode+Character

#####Licensed under the MIT and GPL licenses.