Browse Source

Version 1.0.0 set

Robin Herbots 13 years ago
parent
commit
41e5920c87
3 changed files with 34 additions and 2 deletions
  1. 32 0
      README.md
  2. 1 1
      js/jquery.inputmask.extentions.js
  3. 1 1
      js/jquery.inputmask.js

+ 32 - 0
README.md

@@ -297,4 +297,36 @@ A new folder dist is created with the minified and optimized js-files
 
 ### date aliases
 
+```javascript
+$(document).ready(function(){
+   $("#date").inputmask("dd/mm/yyyy");
+   $("#date").inputmask("mm/dd/yyyy");
+   $("#date").inputmask("date"); // alias for dd/mm/yyyy
+});
+```
+
+The date aliases take leapyears into account.  There is also autocompletion on day, month, year.
+For example:
+
+input:	2/2/2012 		result: 02/02/2012
+input:  352012			result: 03/05/2012
+input:  3530			result: 03/05/2030
+input: <ctrl> rightarrow	result: the date from today
+
 ### numeric aliases
+
+```javascript
+$(document).ready(function(){
+   $("#numeric").inputmask("decimal");
+   $("#numeric").inputmask("non-negative-decimal");
+   $("#numeric").inputmask("integer"); 
+});
+```
+
+Autocompletion on tab with decimal numbers
+
+```javascript
+$(document).ready(function(){
+   $("#numeric").inputmask("decimal" { digits: 3 });
+});
+```

+ 1 - 1
js/jquery.inputmask.extentions.js

@@ -3,7 +3,7 @@ Input Mask plugin extentions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 0.0.8
+Version: 1.0.0
 
 Optional extentions on the jquery.inputmask base
 */

+ 1 - 1
js/jquery.inputmask.js

@@ -3,7 +3,7 @@ Input Mask plugin for jquery
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 0.6.1
+Version: 1.0.0
  
 This plugin is based on the masked input plugin written by Josh Bush (digitalbush.com)
 */