Hide price when product has class – javascript

i have category with many products. But only one product has specific class. I need search this class and hide price only for this product. This code hide prices of all products: $(document).ready(function(){ if($(‘.flag’).length > 0) $(‘.prices’).hide(); }); This is simple code of website: <div class=”products”> <div class=”product”> <div class=”flag”> … </div> <div class=”prices”> ……