浏览代码

added casing option for the definitions

Robin Herbots 14 年之前
父节点
当前提交
5eeeb22328
共有 1 个文件被更改,包括 11 次插入2 次删除
  1. 11 2
      README

+ 11 - 2
README

@@ -187,7 +187,16 @@ $(document).ready(function(){
    $("#date").inputmask("date");       => equals to    $("#date").inputmask("d/m/y");
 });
 
-or use the dd/mm/yyyy alias of the data alias:
+or use the dd/mm/yyyy alias of the date alias:
 $(document).ready(function(){
    $("#date").inputmask("dd/mm/yyyy");       => equals to    $("#date").inputmask("d/m/y");
-});
+});
+
+auto upper/lower- casing inputmask
+
+see jquery.inputmask.extentions.js for an example how to define "auto"-casing in a definition (definition A)
+casing can be null, "upper" or "lower"
+
+$(document).ready(function(){
+   $("#test").inputmask("999-AAA");       => 123abc ===> 123-ABC 
+});