View Single Post
Old 11-09-2012, 12:26 AM   PM User | #5
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
oh dear. Ok, I see youve but some div's inside of the UL, but outside of the LI in the list.

- thats not valid html, which is why I was confused sorry.

ok to work with your current design you need to change :

Code:
jQuery(this).next(".MenuContent").slideToggle(500);
to :

Code:
jQuery(this).parent().parent().find(".MenuContent").slideToggle(500);
or fix the html first.

- 25 valdiation error sunfortunately , I probabaly shoudl have checked that first:

http://validator.w3.org/check?uri=ht...Inline&group=0
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote