I have this:
HTML:
<p class="Link"><a href="...">Test1</a></p>
<p class="Link"><a href="...">Test2</a></p>
<p class="Link"><a href="...">Test3</a></p>
jQuery
$(document).ready(function() {
$('.Link').hover(function() {
$('.Link a').css('color', 'black');
}, function() {
$('.Link a').css('color', 'white');
});
});
First of all, I need to change the anchor color when the mouse hovers over the paragraph, not just the anchor. Secondly, I need to do this without creating a unique id for each paragraph or anchor. With the code as it is, it changes the color for all three anchors tags. I only want it to change the color on the anchor contained within the paragraph I am currently hovering over. Is this possible?
Thanks!