SyntaxFix
Write A Post
Hire A Developer
Questions
Maybe something like this, where you could select more than one element if you'd like?
$("#number").each(function(){ $(this).val(parseFloat($(this).val()).toFixed(2)); });