I'm having trouble understanding why this field isn't updating with the correct number. It seems that any value less than 1 is being rounded in the alert() function. I believe all numbers are simply getting rounded down, but I'm unsure of another method to retrieve the value without experiencing this issue. Any suggestions?
The current value is 0.03
var citrullineChoice = document.getElementById("citrulline").getElementsByClassName("on")[0].value;
alert returns 0
The current value is 0.03
var tyrosineChoice = document.getElementById("tyrosine").getElementsByClassName("on")[0].value;
alert returns 1