3. Select an Element


#1




https://www.codecademy.com/courses/web-beginner-en-zmn0b/0/3?content_from=make-an-interactive-website%3Ayour-first-program#

These error messages occur:

Oops, try again. Add the line $('.icon-menu'); inside your main function.

var main = function() {
 $(".icon.menu");   
};


$(document).ready(main);

Thanks so much!!! :slight_smile:


#2

The answer is in the error message...

    $('.icon-menu');

#3

it still isn't working!!!!!

var main = function() {
    $('.icon.menu');   
};


$(document).ready(main);

#4

The answer is in the error message...

$('.icon-menu');

#5

You need to add a hypen instead of a dot in the CSS class name.