jQuery nav not responding

JavaScript and client side scripting.

Moderator: General Moderators

User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: jQuery nav not responding

Post by pickle »

Why do you have Products and Solutions_Center? In your original post you only had one array.

The idea is - you want to use the ID of the <li> moused over to determine what submenu to show. So if they hover over an <li> with "Shredders", or "Identity_and_Document_Security", they get the appropriate submenu.

Put all possible submenu descriptions in 1 object. Don't split it up into multiple objects. When the function is called, you can use the passed ID as a key to output the necessary sub nav stuff.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply