Why does this jQuery dropdown menu display subcategory selections only for certain top-level categories?

Posted by chunkymonkey on Stack Overflow See other posts from Stack Overflow or by chunkymonkey
Published on 2010-12-27T19:45:23Z Indexed on 2010/12/27 19:53 UTC
Read the original article Hit count: 189

Filed under:
|
|
|
|

I'm trying to implement a dropdown menu based on a jQuery plugin from Filament Group:

http://jsfiddle.net/chunkymonkey/Pr8k4/

What I am having difficulty fixing is a bug where certain categories can be expanded to show their subcategories while others show nothing when opened up.

For example:

  1. Alternative Rock can be expanded to show its multiple subcategories . . . BUT . . .
  2. World Music, which has equally many subcategories, shows no subcategories when expanded.

I would be very grateful if anyone could help me figure out what's causing this. Thanks.

UPDATE: Just noticed this problem may be Chrome-specific(??). I just tested it in IE8 and Firefox and it seems to work correctly in both.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery