Hello all!
I have a problem with my jquery.
I have hidden some parts of my menu, but I can't seem to hide the div tag.
How do I accomplish this?
This is my jquery:
$(function(){
$('ul.ldd_menu li.topLink ul').hide();
$('li.topLink').hover(function(){
$(this).find('ul').show()
$(this).css({'background-color':'#000000', 'color':'#ffffff'});
},function(){
$(this).find('ul').hide();
$(this).css({'background-color':'#ffffff','color':'#000000'});
});
});
This is my html code:
<ul id="ldd_menu" class="ldd_menu">
<li>
<span class='mainMenuTitle-first'><a href='#'>Home</a></span><!-- Increases to 510px in width-->
</li>
<li class='topLink'>
<span class='mainMenuTitle'><a href="#">Women</a></span>
<div class="ldd_submenu">
<div class="submenu_top">
<ul class='submenu_left'>
<li class="ldd_heading">Products</li>
...
It seems like my <div> class isn't getting hidden because if I do a border css, I can see the border lines. Help?
Thank you