I have the following structure, what I want to achieve is that if the point class has the "black" attribute, the button does not appear. Someone who can help me please
     <div class="container" > 
         <div class="card" > 
           <div class="button" > button </div>
            <div class="colors" > 
             <div value="black" class="point"> </div>
             <div value="white" class="point"> </div>
            </div>
           </div>
         </div> 
        if ($('.point').attr("value") == "black") {
              $(".button").hide();
         }
 
     
    