Link to home
Start Free TrialLog in
Avatar of Malloy1446
Malloy1446

asked on

Collapsible menu and IE 11

I was using an outline java script for expanding / collapsing menus. My code is working perfectly in IE 9 and IE 10. In IE 11, the page displays with all menus expanded. Is there a solution for expanding / collapsing menus that will work in all browsers?
Collapsible.txt
Outline.txt
Avatar of Big Monty
Big Monty
Flag of United States of America image

if you're ok with changing your code and using jQuery, then I would recommend jQuery's accordian plug-in:

http://jqueryui.com/accordion/

It's pretty simple to use and set up, and it works in all major browsers
Where did you get that code - it is ancient!
Code also does not work in Chrome or Firefox, reason it doesn't work in IE11 is because IE11 does not report itself in the same way as earlier versions of IE (MSIE).
Since the code is defunct as far as the 21st century is concerned you would be better off taking Monty's advice or search for more updated code that is not over 10 years old.

Here's a jQuery version
http://jsfiddle.net/SacWm/80/

jQuery is a javascript framework used in over 50% of all websites to make cross browser js coding really simple.
Avatar of Malloy1446
Malloy1446

ASKER

Cathal: this is exactly what I want to do, but I am not sure how to implement the jQuery. Never used before!
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Works like a charm. Thanks!