I'm not sure how to access this element with jQuery.
When the user hovers over the link inside the image, I want the class hidden to be removed.
This is just one list menu item of many, so I need a way to do it with $this
<ul class="menu">
<li>
<ul>
<li class="hidden">
<div class="container">
<div class="one"></div>
<div class="two"></div>
<div class="three"></div>
<div class="four"></div>
<div class="five"></div>
<div class="six"></div>
</div>
</li>
<li>
<img src="images/sample.svg" /><a href="#">Sample</a>
</li>
</ul>
</li>
</ul
In vain I tried:
$('.menu>li>ul>li:last-child>img>a').hover(function() {
$(this).parent().parent().child().removeClass('hidden');
}, function() {
$(this).parent().parent().child().addClass('hidden');
});