JSFiddle - React, Tailwind, and code Playground

by GaryC123

HTML

<div id="Product_x" class="productDisplay">
       <div class="cart_Label">
            <label>
                   <span id="ProductList_ctl00_ProductListListView_ctrl1_PriceLabelControl_3_lblLabel_3">Price:</span>
           </label>
       </div>
       <span id="ProductListListView_ctrl1_PriceValueLabel_1">Login for Price</span>

 </div>
<div id="Product_x" class="productDisplay">
       <div class="cart_Label">
            <label>
                   <span id="ProductList_ctl00_ProductListListView_ctrl1_PriceLabelControl_3_lblLabel_3">Price:</span>
           </label>
       </div>
       <span id="ProductListListView_ctrl1_PriceValueLabel_1">Login for Price</span>

 </div>

CSS

button {
    border:1px solid blue;
    background:gray;
    color:#fff
}

JavaScript

$(".productDisplay > span:contains('Login for Price')").each(function(){
  $(this).html('<button>Click for Price</button>')  
})