I have a Div on my web-page where if someone hover overs it, I want to change the color of the text on all links in the parent Div. When there is a hover-over, I call the function highlight. However, the following code does not seem to work. I think there is a syntax issue because highlight2 works just fine (but doesn't achieve my main goal of changing the color of text.
function highlight(el) {
$(el).parent().css('a:link', "{color:#28A8C8;}");
$(el).parent().css('a:visited', "{color:#28A8C8;}");
}
function highlight2(el) {
$(el).parent().css("background", "#FFFFFF");
}