ソースを参照

Merge pull request #1215 from gubi/patch-1

Added placeholder description
Robin Herbots 10 年 前
コミット
c3fa24b72f
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`.
 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
 #### 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.
 When defining an optional mask together with the greedy: false option, the inputmask will show the smallest possible mask as input first.