I have two textboxes that are divided together and multipled by 100 to get the percentage of the textboxes. I would like to change the color to
RED
when the answer Label comes up negative, how do I change the label color from blue to red when the integer is negative?
Example
lblAnswer.Text = (txtNum1.Text / txtNum2.Text - 1 ) * 100
<----- If negative change lblAnswer.Text to color Red else Color is blue?
I tried on TextChange (txtNum2.Text) and
it did not work? Any suggestion with JavaScript or
JQuery?
OnTextChange (txtNum2.Text) change color to ...
Go to the complete details ...