浏览代码

add min, max properties

Robin Herbots 11 年之前
父节点
当前提交
a8d2bc46ce
共有 1 个文件被更改,包括 2 次插入0 次删除
  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);