javascript - Input mask for numeric and decimal -
i realized software application management invoicing after having tested program noticed following error: table in sqlserver contains: price numeric (6,2) user of program enter price 555.00 good. when put 555555 it's error, need specify mask mantissa optional 0 999 , decimal part programmable 2 or 3 according choice of user, i'm using jquery masked input plugin , have not found regular expression, please, help, i'm working jsp / servlet.
you can use jquery numeric numbers.
current version allow you're looking has changed code little bit , works:
html
<input class="numeric" type="text" /> javascript
$(".numeric").numeric({ decimal : ".", negative : false, scale: 3 }); this whole source.
, i've prepared fiddle can see how works.
Comments
Post a Comment