ソースを参照

Added placeholder description

Added the placeholder description as proposed in #1214
Alessandro Gubitosi 10 年 前
コミット
f79252ef43
1 ファイル変更4 行追加0 行削除
  1. 4 0
      README.md

+ 4 - 0
README.md

@@ -197,6 +197,10 @@ $('#test').inputmask('999[-AAA]');
 
 While the field has focus and is blank, users will see the full mask `___-___`. When the required part of the mask is filled and the field loses focus, the user will see `123`. When both the required and optional parts of the mask are filled out and the field loses focus, the user will see `123-ABC`.
 
+### Changing the mask default character
+Instead of "_", you can change the unfilled characters mask as you like, simply by adding the `placeholder` option.<br>
+For example, `placeholder: " "` will change the default autofill with empty values
+
 #### Optional masks with greedy false
 When defining an optional mask together with the greedy: false option, the inputmask will show the smallest possible mask as input first.