[jQuery] jQuery addClass problems
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Courier New, Courier, monospace">Hi folks,
This problem probably stems from my lack of CSS knowledge, but I'm sure
there's someone here who can help me.
I'm trying to use .add/removeClass() to highlight and unhighlight cells
in a calendar when hovered and change their color entirely when they're
clicked, etc.
I had this working great, but now need to add further functionality,
and decided that I should use jQuery to to the highlighting by swapping
classes in and out. It works, but not exactly as I expected. It's
swapping out the text color, but not the background color. I'm
puzzled. Is there some reason I could be seeing these sorts of results?
I've got a css file set up with classes like this:
td.Weekday{
color : #ThisOrderBoardNormalTextColor#;
background-color : #ThisOrderBoardOddRowColor#;
}
td.WeekdayHover{
background-color : #ThisOrderBoardOddRowHighlightColor#;
}
td.WeekdayClicked{
color : white;
background-color : blue;
}
...etc.
I hope someone can help me. :o)
Chris
</font></font>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.cjordan.info">http://www.cjordan.info</a></pre>
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/