浏览代码

readme update

Robin Herbots 12 年之前
父节点
当前提交
ea11472263
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      README.md

+ 11 - 0
README.md

@@ -20,6 +20,7 @@ Highlights:
 - support data-inputmask attribute  
 - multi-mask support  
 - regex-mask support
+- value formatting without input element
 
 Demo page see http://robinherbots.github.io/jquery.inputmask
 
@@ -579,6 +580,16 @@ $(document).ready(function(){
 });
 ```
 
+## Value formatting
+
+Instead of masking an input element it also possible to use the inputmask for formatting given values.
+Think of formatting values to show in jqGrid or on other elements then inputs.
+
+```javascript
+var formattedDate = $.inputmask.format("2331973", { alias: "dd/mm/yyyy"});
+//do something
+```
+
 ## Compiling with Google Closure Compiler
 
 First grab the sources from GitHub.  In the root you type ant.