I have a challenge with a Div element on my website. I want to change the text color of all links within the parent Div when someone hovers over it. I am trying to achieve this by calling the function "highlight" on hover. Unfortunately, the current code does not seem to work as expected. I suspect there might be a syntax issue since the function "highlight2" works fine but does not fulfill my primary objective of changing the text color.
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");
}