Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change Span tag color on client side 1

Status
Not open for further replies.

xenology

Programmer
May 22, 2002
51
US
I build a large 'spreadshet' style grid and dynamically create textboxes for number entry and span tag's for row and column totals. I have it updating the span tag's with the new total every time the number in the textbox changes through an added onblur attribute.

My question is, how can i change the font color of the span tag item from the client side function pageRefresh which is called from each textbox's onblur on a certain condition met? Let me know if posting the code will help.

thanks in advance!
-xeno
 
posting the relevant code will help, but the basic syntax is like:

mySpanObj.style.color = "#f00";


-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top