So Basically I am trying to keep the top level categories image of a down arrow turned on while hovering over the submenu's elements. I want to do this through jQuery on a hover function however I cannot for the life of me get a selector to target the sub menu items.
Here is the code I am trying to run:
$(document).ready(function() {
$('.sub ul > li').hover(function() {
$(this).parents('a.sub').attr('src', 'images/DownArrow.png');
},
function(){
$(this).parents('a.sub').attr('src', 'images/DownArrowOff.png');
});
});
On This Drop Down Menu:
http://www.seth-duncan.com/Test/TestMenu.html
But as I said I can't figure out the selector to target those submenu items so I can change the src for the image.
This must be done through jQuery not through CSS (believe me I know it works but not with the way I have to accomplish this task)
Thanks for any and all help.
-Seth