この場合、必要な要素をターゲットにする方法がわかりません。
var $div = $(".row-container").filter(function() {
return $(this).data("i") == product_id;
// where value == product id to find
});
今、私が欲しい$div
クラスを持つ要素があり'price-row'
ます。$div.hasClass('price-row')
true または false の値のみを返します。