loop through elements with jquery?
<p>i've never looped through elements with jquery and it would be great with some help.</p>

<p>my DOM looks like:</p>

<pre><code>&lt;div class="section"&gt;

    &lt;div class="group"&gt;
        &lt;div class="comment"&gt;
            &lt;input class="comment" type="text" /&gt;
            &lt;br /&gt;
        &lt;/div&gt;
        &lt;div class="link"&gt;
            &lt;input class="link" type="text" /&gt;
            &lt;input class="link" type="text" /&gt;
            &lt;br /&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;div class="group"&gt;
        &lt;div class="comment"&gt;
            &lt;input class="comment" type="text" /&gt;
            &lt;input class="comment" type="text" /&gt;
            &lt;br /&gt;
        &lt;/div&gt;
        &lt;div class="link"&gt;
            &lt;input class="link" type="text" /&gt;
            &lt;br /&gt;
        &lt;/div&gt;
    &lt;/div&gt;

&lt;/div&gt;
</code></pre>

<p>how do i write the code to get all values in text input fields (class=comment and class=link). there will be lot of groups with different numbers of text input fields.</p>

<p>thanks!</p>
