$(document).on('click', 'input.cart', function () {
var txt = [];
txt.push($(this).closest("td")
.siblings()
.each(function () {
txt.push($(this).text());
}));
var txt2 = Object.assign({}, txt); // arr to obj
console.log(txt2);
});