Currency Fields Widget??!!

Currency Fields Widget??!!

  
I'm having the following problem, if someone has been there could help me?
I have two inputs with decimal values ??with 5 and one with 9 as the picture shows, use the following mask "Fields Currency Widget", the problem is that only the last configuration that enables to make the decimal places, and should be an input with 5 houses and the other with 9.
Hi Cleyton,
Can you tell  the max-values that you have in those database attributes (Length / Decimals)?
And can you attach an eSpace with an example of this behaviour?
Anyway you can take a look at this example too:
https://github.com/madeinstefano/Decimal-Mask

Kind regards,
Gonçalo Martins
Gonçalo Martins wrote:
Hi Cleyton,
Can you tell  the max-values that you have in those database attributes (Length / Decimals)?
And can you attach an eSpace with an example of this behaviour?
Anyway you can take a look at this example too:
https://github.com/madeinstefano/Decimal-Mask

Kind regards,
Gonçalo Martins
 
 Thanks Gonçalo!
It helped quite'll test the proposed solution!
Cleyton wrote:
 
 Thanks Gonçalo!
It helped quite'll test the proposed solution!
 
 Hi Cleyton,
This example work fine.

Best Regards,
Luís Teixeira
wrote: Hi Luis, was exactly what I wanted, your script is much leaner and does exactly what I needed.

thank you! Perfect!

 
 Hi Cleyton,
This example work fine.

Best Regards,
Luís Teixeira
 
 
Hi Luis!
Thanks for that solution.
Is possible to format the text while the user is typing, to avoid errors?
For example:
if the user types more than one decimal separator, the widget will not allow that.
Another thing, how to block letters too?


Thanks.
Best Regards,
Marcos