Need help with js. There is a table, at the touch of a button, all elements of the string fall into an array. When outputting, the log console looks all together, approximately like ProductNumberProductPriceProductName. How to make an associative array or how to break?
var txt = []; $(document).on('click', 'input.cart', function () { txt.push($(this).closest("td") .siblings() .text()); } console.log(txt); });
console.log- ThisMan