I want to clarify what would be a proper way to getting and manipulating product ID. Here is my attempt:
HTML:
<div data-product-id="100"></div>
Script:
var pid = $(this).attr('data-product-id');
$('#product_' + pid).css('display', 'none');
Is there a better way that $('#product_' + pid)
?