I have a set of textboxes which I want to iterate in order to get a list of their values. So I used the following appraoch:
var locations = [];
$("input[type=text]").each(i => {
    var obj = $(this);
    locations.push(obj.value)
});
When I debug that, obj is the main-window, not the current element within my DOM. Thus obj.value just returns undefined.
However when I just use $("input[type=text]").val() only the very first value is returned.
thisin arrow functions developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…