Extended from $., and rewrite defaults with $.
rely
validatebox
usage
<input type="text" ></input>
$('#nn').numberbox({
min:0,
precision:2
});
rely
validatebox
usage
Copy the codeThe code is as follows:
<input type="text" ></input>
Copy the codeThe code is as follows:
$('#nn').numberbox({
min:0,
precision:2
});
characteristic
Its features are extended from validatebox, the following are numberbox Added features.
name |
type |
illustrate |
default value |
disabled |
boolean |
Defines whether to disable the domain. |
false |
min |
number |
Minimum allowed. |
null |
max |
number |
The maximum allowed value. |
null |
precision |
number |
The maximum accuracy displayed after the decimal point. |
0 |
method
Its method extends from validatebox, the following are numberbox Append or rewrite method.
name |
parameter |
illustrate |
disable |
none |
Disable this domain. |
enable |
none |
Enable this domain. |
fix |
none |
Fix the value to a valid value. |