I want to get all fields that are located in a single class name, for example my code like.
<div class="test">
<input type="text" class="text-field" />
<input type="text" class="text-field" />
<input type="text" class="text-field" />
<input type="text" class="text-field" />
</div>
<div class="test">
<input type="text" class="text-field" />
<input type="text" class="text-field" />
<input type="text" class="text-field" />
<input type="text" class="text-field" />
</div>
I want to get the each loop in which it return me the text fields value that is located in this class. Any suggestions?
Try this:
EDIT:
To get values try this: