i have issue autonumeric plugin:
html
<input id="testinput" type="text" value="" />
javascript
//init autonumeric $("#testinput").autonumeric('init', { asep: '.', adec: ',', aform: true, vmax: '999999999', vmin: '20.00' });
i try type in testinput, don't success because vmin
20.00
.
example: http://fiddle.jshell.net/gatfil/7h604exp/1/
autonumeric http://www.decorplanit.com/plugin/
thank you
from autonumeric
plugin documentation:
if minimum / maximum values both positive or negative must have default value assigned field greater or equal minimum value , less or equal maximum value.
important - please understand vmin & vmax settings limits. meaning user cannot enter value greater vmax value , cannot enter or delete value below vmin setting. when setting vmin & vmax values both positive or negative create paradoxical situation limits user ability enter values. consider following:
...
vmin:'10' & vmax:'100' , no default value - can never enter value.
so if minimum / maximum values both positive or negative must have default value assigned field , you're in sample situation vmin:'10' & vmax:'100' , no default value - can never enter value.
so solution set vmin
value default value input:
<input id="testinput" type="text" value="20" />
check updated jsfiddle
hope helps,
Comments
Post a Comment