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
Collapsible.txt
Outline.txt
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.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Works like a charm. Thanks!
http://jqueryui.com/accordion/
It's pretty simple to use and set up, and it works in all major browsers