SyntaxFix
Write A Post
Hire A Developer
Questions
To pad at the end of the number, use num.toFixed
for example:
document.getElementById('el').value = amt.toFixed(2);
It's the simplest solution i've found, and it works.