I want to display a value of lets say 100.00 in a number input. This can be user entered and works with currency so it is important that it shows.
However when programatically setting the value to 100.00 it resets the displayed variable to 100.
However if you write 100.00 then it works fine. Problem is that there is validation on this input and the value gets refreshed by the javascript putting it back to 100.
Edit: Seems to only be affecting Firefox. I have tried adding the value as
input.value = 100.00
input.value = parseFloat(100.00)
input.value = parseFloat(100.00).toFixed(2).
document.getElementById('test_input').value = 100.00;
<input id="test_input" type="number" step="0.01">
And JSFiddle https://jsfiddle.net/3qnL07yu/