I am trying to change the text color of a control using something like the following:
If CSng(txtTCal.value) >= CSng(txtLCal.value) Then '$(txtTCal).css("color","red") txtTCal.style.color = "red" lblCal.style.color = "red" Else '$(txtTCal).css("color","black") txtTCal.style.color = "black" lblCal.style.color = "black" End If
It’s a bootstrap 4 Input control.
The code that changes the color of the label works.
Neither one of the codes where I want to change the color of the control works at all.
Is there another form of color change that I can use?
Or is there a problem with the control?