Sorry if this is easy but is there a trick to searching all the children of an element?
Was trying:
$('#dropdown-main .dropdown').toggle();
$('#dropdown-main > .dropdown').toggle();
$('#dropdown-main > ul > li .dropdown').toggle();
$('#dropdown-main > ul > li > .dropdown').toggle();
$($('#dropdown-cart').find('.dropdown')).toggle();
.dropdown is not a direct descendant of #dropdown-main - any pointers in the right direction would be much appreciated.
Cheers
Sorry if this is easy but is there a trick to searching all the children of an element?
Was trying:
.dropdown is not a direct descendant of #dropdown-main - any pointers in the right direction would be much appreciated.
Cheers