How can we change the class or div content by giving it a specific condition?

<script>

$(document).ready(function() {

  if( $("button:contains('Add to cart')").length) {
     
    $('.classname').css('display', 'none');
   
  }
});

</script>

No comments:

Post a Comment