i've never looped through elements with jquery and it would be great with some help.
my DOM looks like:
<div class="section">
<div class="group">
<div class="comment">
<input class="comment" type="text" />
<br />
</div>
<div class="link">
<input class="link" type="text" />
<input class="link" type="text" />
<br />
</div>
</div>
<div class="group">
<div class="comment">
<input class="comment" type="text" />
<input class="comment" type="text" />
<br />
</div>
<div class="link">
<input class="link" type="text" />
<br />
</div>
</div>
</div>
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.
thanks!