Users input data and then see the calculated result.
Is it possible to change the CSS style of the text, "Fe," including its color and font-family, as well as the background-color of the input field simultaneously?
I attempted the following:
function convcase(word) {
document.convert.Ca.value = BuckwheatCa * document.convert.Buckwheat.value
if(document.convert.Fe.value < 10){
document.getElementById("Fe_t").style.color="red";}
else { document.getElementById("Fe_t").style.color="blue";
};
}
However, I'm unable to access the Fe_b id or change the font-family of the text.
<td id='Fe_t'>Fe</td> <td id='Fe_b'><INPUT TYPE=TEXT NAME="Fe" DISABLED></td>
Could jquery be used to achieve this effect?