JavaScript: In a cell: change background and font color

Posted on 2003-03-10
Medium Priority
Last Modified: 2013-12-03
easy question.. should be.. wracking my brain cause I should know this..
I have a table cell held on oRow.. to change the background color of the cell I use:


which works just fine.. but how do I change the fontcolor as well? I've tried style.color, style.font-color and various other expected values, but nothing works..

Question by:PMH4514
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Author Comment

ID: 8106160
I was right..
oRow.style.color = '000000';
I had an anchor tag on the text which was keeping it from changing. I've been looking at this screen too long.

this question is self-answered
LVL 63

Expert Comment

ID: 8106867
Ok, then please let close this question by posting a zero points request in this topic area:

Put a link to this question to be closed and to get points refunded.



Accepted Solution

Chmod earned 0 total points
ID: 8110169
Points refunded & question saved to PAQ

Community Support Moderator @Experts Exchange

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question