Find and add class for menu.

Find and add class for menu.

I'm working on a simple full width menu whereby the list items are in one div and the inner menu is somewhere else. i have done a fiddle -  https://jsfiddle.net/szrqwL9h/

Basically i need to link each navigation item to the dropdown but this needs to be done in a way if more top level categories are added the menu will open for a new category.

Any help would be appreciated.

i did try 

  1. $(".MastHead").find("NavDropdown").addClass('open');
But didnt seem to work