[jQuery] Re: Disabling parent link if children present

2009-09-25 Thread Shane Riley
Are you wanting to just hide the anchor element for link 4 but keep links 4a to 4c visible? Here's a quick example of that scenario: $(function() { $(ul#nav li ul).each(function(i) { $(a:first, $(this).parent()).hide();

[jQuery] Re: Disabling parent link if children present

2009-09-24 Thread Giovanni Battista Lenoci
osu ha scritto: - Link 1 - Link 2 - Link 3 - Link 4 - Link 4a - Link 4b - Link 4c - Link 5 I suppose you have a similar markup: ul id=mymenu lia href=http://www.jquery.com;Jquery/ali lia href=#Search Engines/a ul lia href=http://www.google.com;Google/a/li lia