I am not able to find how to get the value of span(80.40) from the below given html.
<div data-total-name="service-fee-total" data-currency="USD" class="col-xs-4 service-fee-total totals cart-total text-right cart-highlight">
<del></del>
<span>$80.40</span>
</div>
This is my company websites code and i dont have access to edit anything. I have to incorporate a new feature using a google tag manager and for that i needed the value in span element. I tried some options mentioned below.
$(".col-xs-4 service-fee-total totals cart-total text-right cart-highlight span").text()
document.getElementsByClassName("col-xs-4 service-fee-total totals cart-total text-right cart-highlight");