javascript - Why doesn't the toggle toggle? -
newb here attempting learn how work jquery way of investigating 'the toggle' i have simple html page , thought second link load collapsed/hidden , when clicked reveal it's contents, not. instead displays screen inner html exposed (hope i'm using terms correctly). believe happening jquery not loading, thats best guess of hobbyist, out there can me work. <html> <head> <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> <script> $.fn.slidefadetoggle = function(speed, easing, callback) { return this.animate({ opacity: 'toggle', height: 'toggle' }, speed, easing, callback); }; // collapse first menu: $("#accordionmenu li a").not(":first").find("+ ul").slideup(1); // expand or collapse: $("#accordionmenu li a").click(function() {