I have span
that depending on the value I wanted it to be red for divergence and blue if the data is acceptable, I tried this way:
getElementById('span').css('color', 'blue').innerHTML = <valor>
But this did not work, I saw in the documentation something like style
getElementById('span').style.color = "blue" //nesse caso como recupero o valor?
I also could not use it, I did not want to use css. Is there any way to apply this effect?