I Can't Find the Issue With My Code


#1

Same problem but I can't find the issue with my code...

var main = function()
{
$('dropdown-toggle').click(function()
{
$('dropdown-menu').toggle();
});
}
$(document).ready(main);

Plz help me find the issue! Thx


Interactive website: #3-Dropdown Menu exercise
#2

never mind! thanks anyways!


#3

@rsa072891 dropdown-toggle and dropdown-menu are class names, which means they get a dot (.) in front of them, like this:

$('.dropdown-toggle')

You need to pay close attention to little details like this :slight_smile:


#4

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