Select Inner Elements $("outter inner")

$("outter inner")

e.g. $("div span")

$("outter inner") selects all inner child, grandchild, great-grandchild, and so on elements matching inner within outter elements.

For example, $("div span") will find all inner <span> within outter <div>
<div>
  <span>
  <p>
    <span>
  </p>
</div>

Code: Find all "inner" elements <div class="circle"> within "outter" <div id="box1">

HTML
//CSS classes
.circle{ ... }
.square{ ... }

<div id="box1">
    Box 1
    <div class="circle">circle</div>
    <div class="square">square</div>
    <div id="box2">
        Box 2
        <div class="circle">circle</div>
        <div class="square">square</div>
    </div>
</div>
jQuery code
$("#box1 .cirlce"); // selects elements where outter element id='box1' & inner class='cirlce'
Demo

Box 1
circle
square
Box 2
circle
square
jQuery selector $("outter inner")