if(smaxResult<sigma){
document.getElementById('smaxResult').innerHTML = "Max strain is: " + smaxResult + "<σ(επ) text1";
} else{
document.getElementById('smaxResult').innerHTML = "Max strain is: " + smaxResult + ">σ(επ) text2";
}
Hello! i have this condition, and I want when the (smaxResult < sigma) occurs the <σ(επ) text1 to turn out green or else the >σ(επ) text2 to turn out red (I mean the color of the font).
Any advise? thank you.
smaxResult, what'ssigma? Do you have any HTML that might be relevant to this problem?