Browse Source

Update README.md

Robin Herbots 14 years ago
parent
commit
3ff30a9c5f
1 changed files with 6 additions and 8 deletions
  1. 6 8
      README.md

+ 6 - 8
README.md

@@ -237,7 +237,7 @@ use:
 
 
 ```javascript
 ```javascript
 $(document).ready(function(){
 $(document).ready(function(){
-   $("#date").inputmask("date");       => equals to    $("#date").inputmask("d/m/y");
+   $("#date").inputmask("date");    //   => equals to    $("#date").inputmask("d/m/y");
 });
 });
 ```
 ```
 
 
@@ -245,7 +245,7 @@ or use the dd/mm/yyyy alias of the date alias:
 
 
 ```javascript
 ```javascript
 $(document).ready(function(){
 $(document).ready(function(){
-   $("#date").inputmask("dd/mm/yyyy");       => equals to    $("#date").inputmask("d/m/y");
+   $("#date").inputmask("dd/mm/yyyy");   //    => equals to    $("#date").inputmask("d/m/y");
 });
 });
 ```
 ```
 
 
@@ -256,22 +256,22 @@ casing can be null, "upper" or "lower"
 
 
 ```javascript
 ```javascript
 $(document).ready(function(){
 $(document).ready(function(){
-   $("#test").inputmask("999-AAA");       => 123abc ===> 123-ABC 
+   $("#test").inputmask("999-AAA");    //   => 123abc ===> 123-ABC 
 });
 });
 ```
 ```
-
 ### getemptymask command
 ### getemptymask command
 
 
 return the default (empty) mask value
 return the default (empty) mask value
 
 
+
 ```javascript
 ```javascript
 $(document).ready(function(){
 $(document).ready(function(){
    $("#test").inputmask("999-AAA");
    $("#test").inputmask("999-AAA");
-   alert($("#test").inputmask("getemptymask"));    => "___-___" 
+   var initialValue = $("#test").inputmask("getemptymask");  // initialValue  => "___-___" 
 });
 });
 ```
 ```
 
 
-### RTL input 
+### rtl input
 
 
 Just add the dir="rtl" attribute to the input element
 Just add the dir="rtl" attribute to the input element
 
 
@@ -279,5 +279,3 @@ Just add the dir="rtl" attribute to the input element
 <input id="test" dir="rtl" />
 <input id="test" dir="rtl" />
 ```
 ```
 
 
------------------------------------------
-