I would like to remove only text part but not variable.
In following image I am trying to translate this line via JQuery.
following is the code I am using:
Want to change only text not the part which is enclosed in strong tag.
$('.content-box__row div:nth-child(3)').text('');
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div role="cell" class="review-block__content" data-review-section="shipping-cost">
Passport Priority Duties and Taxes Paid
·
<strong class="emphasis">
<span class="skeleton-while-loading--inline">14,96 €</span>
</strong>
</div>