Join Chris Converse for an in-depth discussion in this video Targeting parent items with a special CSS class, part of Creating Navigation Menus with jQuery and Dreamweaver.
Now to add custom classes on to all the list items that have submenus inside of…the document ready after the drop menu instruction that we assigned, let's add a few returns.…Let's start by typing dollar sign, beginning and ending parentheses.…Inside the parentheses, two tick marks for a string literal, we're going to search for list items.…Outside of the parentheses .has parentheses, inside of the parentheses two tick…marks for a string literal, we're going to type 'ul'.…
So we're looking for all list items that have the ul item inside of them.…Then we're going to type .find, beginning and ending parentheses. Inside of find…parentheses tick marks for a string literal.…We're going to type greater than, space, a.…Outside of the parentheses we'll type addClass, beginning and ending…parentheses, semicolon.…Inside of addClass, two tick marks for a string literal.…
We are going to type 'indicator'.…So what this is basically doing is we're looking for every list item if it has…an unordered list as one of its children, we're going to find the immediate…
To preview the finished project, visit: http://codifydesign.com/chris/lynda/samples/course-0015
This course was created and produced by Chris Converse. We are honored to host his material in the Lynda.com online training library.
Skill Level Intermediate
Q: Where can I find more menu information and plug-ins from menu systems?
A: There is a great article from 1stwebdesigner, "38 jQuery And CSS Drop Down Multi Level Menu Solutions", where they list and explain thirty-eight different plug-ins and techniques.