Targeting parent items with a special CSS class


show more Targeting parent items with a special CSS class provides you with in-depth training on Developer. Taught by Chris Converse as part of the Create Navigation Menus with jQuery and Dreamweaver show less
please wait ...

Targeting parent items with a special CSS class

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...

Targeting parent items with a special CSS class
Video duration: 2m 10s 25m 49s Intermediate

Viewers:

Targeting parent items with a special CSS class provides you with in-depth training on Developer. Taught by Chris Converse as part of the Create Navigation Menus with jQuery and Dreamweaver

Subjects:
Developer Web
Software:
Dreamweaver jQuery
Author:
please wait ...