i have this html:
<span class="price">
$61.00
<span class="detailFreeShipping">With Free Shipping</span>
</span>
How to write a jquery selector which give me the price text only “$61.00”?
i want to make it generic as i can because may be in some cases there is no inner span, just the parent one.
You can do this:
then you can call it like this
you will get the value you want.