var product = []; $('.products-list .add_product .name_product').each(function() { product.push( $(this).html() ); }); alert(product);