HELP - Missing something simple I think


#1

Hello all, I know I am missing something simple. Can I please have some advice?

Here is my code:

$(document).ready(function() {
$('.menu').accordion(function);
});

});

I am allowed to pass but there is no effect in the window.

Here is my error:

SyntaxError: missing ( before formal parameters


#2

$(document).ready(function() { 
    $('.menu').accordion(function); 
    
    });
});

Line 2 should be $('#menu').accordion(function() {


#3

ANNNDDD #menu Not .menu


#4

Thank you very much for your help


#5

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.