For this to separate the class name we need to create a separate class name for that same class name
for example(shipping and billing address are in same class )
<script>
var a = $(“.checkout-billing-address”).text(); if (a.includes (‘Billing Address’)) { $(‘.checkout-billing-address’).text(‘Enter Billing Address’); } var b = $(“.checkout-shipping-address”).text(); if (b.includes (‘Enter Shipping Address’)) { $(‘.checkout-shipping-address’).text(‘Choose Shipping Address’); }
</script>