$('#download2').click(function(event){ $("#formtable").each(function (i) { console.log($('input[type="text"]').val()); console.log($('label[for="lastName"]').text()); }); }); It is impossible to get all the value of input, for some reason, one value is output and the one that did not go to the formtable. And for example, the label I have all the values are obtained normally. What have I done wrong?