I try to display all the parameters, but $ .each only draws the last one, although everything is in the console.
$.each(data, function(index, person) { var output = "<tr>"; output += "<td>" + person.name + "</td>"; output += "<td><select name='persons[]'>"; $.each(person.variants, function(i,value){ output += "<option>" + value.name + "</option>"; }); output += "</select></td>"; output += "</tr>"; console.log(filter); $('#results').html(output); }); Why does he display only the last value, but not all that exist?