Get all text field value located in a specific class
Try this:
$(".test .text-field")
EDIT:
To get values try this:
$(".test .text-field").each(function() {
alert($(this).val());
});
If you want all the values into an array, you can do this:
var texts= $(".test .text-field").map(function() {
return $(this).val();
}).get();
Here's another method to obtain an array of the input values:
Array.from($('.test .text-field').get(), e => e.value)
Or alternatively:
[].map.call($('.test .text-field').get(), e => e.value)