Skip to content

Challenge Target The Children Of An Element Using JQuery

Quincy Larson edited this page Aug 20, 2016 · 1 revision

Challenge Target the Children of an Element Using jQuery

Many HTML elements have children elements from which they inherit properties.

jQuery has a function called children() that allows you to access the children of whichever element you've selected.

Here's an example of how you would use the children() function:

$("#left-well").children().css("color", "blue");
Clone this wiki locally