I'm stuck on an issue here and I need some help.
I need to autocomplete a bank ticket input.
Example:
12345.56789.00085.111111.11111.234566.6. 00000000000000
In this last field, if the user does not enter anything, he would have to autocomplete with "0".
If this was the case:
12345.56789.00085.111111.11111.234566.6. 123
The input would have to return:
12345.56789.00085.111111.11111.234566.6. 12300000000000
Always autocompleting with zeros to the right.
How can I do this in javascript?