|
|
@@ -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.
|