Select each element inside parent that parent is a variable
<p>How i can select each element having a specific class name inside a parent where the  parent refers to a variable.</p>

<p>For example:</p>

<pre><code>$('.tenUnit').each(function(index, element){

    //below element is a parent that is a variable
    $('element .specifyClass').each(function(index2, element2){
        // ... some code ...
    });
});
</code></pre>



<pre><code>&lt;div class="tenUnit"&gt;&lt;!-- parent 1 --&gt;
    &lt;div&gt;
        &lt;input class="specifyClass"&gt; &lt;!-- can be anywhere inside div.tenUnit --&gt;
    &lt;/div&gt;
    &lt;input class="specifyClass"&gt;&lt;!-- can be anywhere inside div.tenUnit --&gt;
&lt;/div&gt;

&lt;div class="tenUnit"&gt;&lt;!-- parent 2 --&gt;
    &lt;div&gt;
        &lt;input class="specifyClass"&gt; &lt;!-- can be anywhere inside div.tenUnit --&gt;
    &lt;/div&gt;
    &lt;input class="specifyClass"&gt;&lt;!-- can be anywhere inside div.tenUnit --&gt;
&lt;/div&gt;
</code></pre>
