Browse Source

add min, max properties

Robin Herbots 11 years ago
parent
commit
a8d2bc46ce
1 changed files with 2 additions and 0 deletions
  1. 2 0
      js/jquery.inputmask.numeric.extensions.js

+ 2 - 0
js/jquery.inputmask.numeric.extensions.js

@@ -76,6 +76,8 @@ Optional extensions on the jquery.inputmask base
             suffix: "",
             rightAlign: true,
             decimalProtect: true, //do not allow assumption of decimals input without entering the radixpoint
+            min: undefined, //minimum value
+            max: undefined, //maximum value
             postFormat: function (buffer, pos, reformatOnly, opts) {  //this needs to be removed // this is crap
                 //position overflow corrections
                 pos = pos >= buffer.length ? buffer.length - 1 : (pos < opts.prefix.length ? opts.prefix.length : pos);