Browse Source

readme update

Robin Herbots 12 years ago
parent
commit
ea11472263
1 changed files with 11 additions and 0 deletions
  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.