Re: [jQuery] Hide a nested UL, but show children

2009-10-31 Thread Karl Swedberg
If you don't mind removing them, as opposed to just hiding them, you could do this: $('.topMenu > li > ul > li').each(function() { this.removeChild(this.firstChild); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 30, 2009, at 12:23 PM, hroyale w

RE: [jQuery] Hide a nested UL, but show children

2009-10-30 Thread Smith, Allex
want. -Original Message- From: hroyale [mailto:hroy...@gmail.com] Sent: Friday, October 30, 2009 9:24 AM To: jQuery (English) Subject: [jQuery] Hide a nested UL, but show children Hi, I have a set of nested ULs that is generated for me. I want to use it to create a drop-down navigation menu, howe

[jQuery] Hide a nested UL, but show children

2009-10-30 Thread hroyale
Hi, I have a set of nested ULs that is generated for me. I want to use it to create a drop-down navigation menu, however I don't want to use the values in the second level of ULs in the navigation. It looks something like this: home community awards (not a link)