I have an array of line_items which contain some text, i have 9 div with id like <div id="scroller-1"></div>
and scroller-2 and so on...
what i want to do is i am iterating through array and getting text, but i want to add first element to div with scroller-1 id, second element to scroller-2 and so on like for all 9 divs. how can i do that
var trending_cat = [
["Lotto Rapid Running Shoes"],
["Paradise (English) (Paperback)"],
["Canon EOS 700D (Body with 18-135 mm Lens) DSLR Camera"],
["Huetrap Graphic Print Men's Round Neck T-Shirt"],
["Vincent chase vc 5158 silver silver reflector mirror ao12jo aviator sunglasses"],
["Orka XL Bean Bag With Bean Filling"],
['HP Compaq 15-s103TX Notebook (4th Gen Ci3 4GB 1TB Free DOS 2GB Graph) (K8T82PA)'],
['Moto G (2nd Generation) White, 16 GB'],
['Fastrack 9827PP01 Hip Hop Analog Watch - For Women'],
];
javascript:
for (var i = 0; i < trending_cat.length; i++) {
var cato = trending_cat[i][0];
}
i want to append the value like this
<marquee scrollamount="38"><strong><h1>[i][0]</h1></strong></marquee>