BillLumbergh
Programmer
I have a series of textboxes that are all related and are involved in the summarization of numbers. Putting a number in textbox A affects what is displayed in textbox B. If a change in textbox A makes the number in textbox B negative, I'd like to use Javascript to make the text in textbox B appear red. Then, if that number later becomes greater than or equal to zero, I'd like to turn it black again. I know how to use the style attribute of the input tag to set it to red initially; however, what I am wanting to do is, in the javascript function I have that recalculates the numbers, access that style attribute and set it to red or black as necessary. I'd guess this can be done, I just don't know the exact statement or syntax as to how to do it.
Also, I'd like it to work for both Netscape and IE, but I'm not expecting it to work in Netscape, so anything would be appreciated.
Thanks for any help.
Also, I'd like it to work for both Netscape and IE, but I'm not expecting it to work in Netscape, so anything would be appreciated.
Thanks for any help.