Код: Выделить всё
.closestЯ новичок в понимании получения значений из цикла while с помощью jQueryФункция jQuery[/b]
Код: Выделить всё
$(".update-quantity").click(function(e){
var id = $(this).data('id');
var quantity = $(this).closest('.update-quantity-form').find('.cart-quantity').text();
var price = $('.update-price-price-form').find('.cart-price-price').text();
console.log("Price: "+price);
});
Код: Выделить всё
extract($row);
// update quantity WORKS
echo "";
-
{$quantity}
+
";
// update price DOESN'T work
echo "";
echo "€$price";
echo "";
}
Подробнее здесь: https://stackoverflow.com/questions/613 ... while-loop
Мобильная версия