<div class="row-container" data-i="'+data[i].product_id+'">
<div class="row-container" data-i="'+data[i].product_id+'">
<div class="row-container" data-i="'+data[i].product_id+'">
<div class="row-container" data-i="'+data[i].product_id+'">
I want to delete the row-container that contains a particular product_id. I know data(‘i’) retrieves the value, but I dont know where to go from there.
.dataallows you to set and get other variables beside of strings (functions and objects)You can also use this:
Or with one selector:
(Where
"product_id"is a placeholder for the real value…)