jQuery - find()

The find() method returns descendant elements of the selected element in an array. A descendant is a child, grandchild, great-grandchild, and so on.

https://w3schools.com/jquery/tryit.asp?filename=tryjquery_traversing_find

  • Hello World
  • Hello World
  • Hello World
  • Hello World

// This example will find all the span descendants of ul and apply some css styles.
$(document).ready(function()
{
    $("ul").find("span").css({"color": "red", "border": "2px solid red"});
});