I’m not sure how to target the element I want in this case:
var $div = $(".row-container").filter(function() {
return $(this).data("i") == product_id;
// where value == product id to find
});
Now, within $div is an element that has the class 'price-row' which is what I want. $div.hasClass('price-row') only returns true or false value.
Use
.findif it’s a child element:If you meant that the matching element will be within that set, include it in the criteria to begin with: